Introduction
Introduction
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
- Character creator.
- Default cash and bank UI.
- Idle kick timer.
- Interaction menu.
- Multiple Missions.
- Native Phone.
- Player XP and ranking.
Installation
Requirements
Venomous uses some additional requirements before it can start:
Setup
Add
exec venomous.cfg
toserver.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.
- Download or clone the gamemode from the Github repository.
- Copy all folders to your
resources
folder. - Copy the
venomous.cfg
to the same folder as yourserver.cfg
(in most cases this is server-data/ or cfx-server-data/). - Add
exec venomous.cfg
to yourserver.cfg
look at the example on the right. - Edit the
venomous.cfg
to your liking.
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) |