NAV Navbar
lua csharp

Introduction

Introduction

Version Discord Status

Venomous freemode is a gamemode fully written from scratch.
It's aiming for modularity by splitting parts of the gamemode into multiple independent resources.
This allows you to remove parts at your will, add custom extensions without conflicting resources and even use single parts outside of the gamemode.

Features

Installation

Requirements

Venomous uses some additional requirements before it can start:

Setup

Add exec venomous.cfg to server.cfg below nested configs:

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

set mysql_connection_string "mysql://mysqluser:password@localhost/database?dateStrings=true"

start mapmanager
start spawnmanager
start sessionmanager
start fivem
start hardcap
start rconlog
start ghmattimysql
start NativeUI

sv_scriptHookAllowed 1

# change this
#rcon_password yay

# a comma-separated list of tags for your server
# for example: sets tags "drifting, cars, racing" or sets tags "roleplay, military, tanks"
sets tags "default"

# set an optional server info and connecting banner image url.
# size doesn't matter, any banner sized image will be fine.
#sets banner_detail "http://url.to/image.png"
#sets banner_connecting "http://url.to/image.png"

sv_hostname "My new FXServer!"

# nested configs!
exec venomous.cfg

Save the changes and start your server.

Phone

Create a new app

AppTest = {
    AppName = "Hello World",
    AppIcon = 13,
    OverrideBack = true 
}

function AppTest.Init(phoneScaleform)
    -- Called on app start
end

function AppTest.Tick()
    -- Called every tick
end

function AppTest.Kill()
    -- Called on app kill
end

AddEventHandler("vf_phone:setup", function()
    -- Add the app by passing the AppTest table
    TriggerEvent("vf_phone:addApp", AppTest)
end)

Call and pass a table with all the info to the vf_phone:addApp event to externally add a new app to the phone.

Params Description
AppName The name of the application.
AppName The icon to be shown on the home screen.
OverrideBack Override backspace killing the app (useful for apps with sub-menus)