Fire Signs
Warn the citizens of San Andreas with our fully customizable fire danger warning signs which can be easily set up across the map, and allow for on the spot changing of danger levels. Fully configurable, fully customizable, fully built for your RP needs.
Installation
- Download or update
ox_lib
. Make sure to download the release (opens in a new tab)- Download or update
ox_target
(optional). Make sure to download the release (opens in a new tab)
- Download or update
- Download
TAM_FireSigns
from Keymaster (opens in a new tab) - Drag and drop both
ox_lib
andTAM_ChatToolBox
into your resources folder. - Add
ox_lib
andTAM_FireSigns
to your server or resources.cfg. Always be sure thatox_lib
is starting first
ensure ox_lib
ensure ox_target # If using it
ensure TAM_FireSigns
- Done! You're ready to configure it.
Configuration
- Edit
configuration.lua
located atdata/configiguration.lua
in your favorite code editor/IDE to your liking. - Optional - Edit the default spawns in
data/spawns.lua
Config Explanation
Here's the available config options:
- config.debug:
boolean
- Enable or disable debug commands. Default:
true
- Enable or disable debug commands. Default:
- config.commands:
table
- enabled:
boolean
- Should commands be enabled. Default:
true
- Should commands be enabled. Default:
- changeSignCommand:
string
- Command to change the closest sign's danger level. Default:
"changedangerlevel"
- Command to change the closest sign's danger level. Default:
- addSignCommand:
string
- Debug command to create a new sign at the players position and copy the information to your clipboard to easily paste into the spawns.lua file. Default:
"addsign"
- Debug command to create a new sign at the players position and copy the information to your clipboard to easily paste into the spawns.lua file. Default:
- delSignCommand:
string
- Debug command to delete the closest sign. Default:
"delsign
- Debug command to delete the closest sign. Default:
- delAllSignsCommand:
string
- Debug command to delete all signs on the server. Recommended to run this before restarting the resource to prevent crashing. Default:
"delallsigns"
- Debug command to delete all signs on the server. Recommended to run this before restarting the resource to prevent crashing. Default:
- copyPedPosCommand:
string
- Debug command to copy your ped position to your clipboard in the format to easily paste into the spawns.lua file. Default
"copypedpos'
- Debug command to copy your ped position to your clipboard in the format to easily paste into the spawns.lua file. Default
- copySignPosCommand:
string
- Debug command to copy the nearest signs position to your clipboard in the format to easily paste into the spawns.lua file. Default
"copysignpos"
- Debug command to copy the nearest signs position to your clipboard in the format to easily paste into the spawns.lua file. Default
- groups:
string
|boolean
- The ace permission or job group (if using a framework). Default:
false
- The ace permission or job group (if using a framework). Default:
- commandDistance:
integer
- Distance to check closest sign for commands that require distance.
- enabled:
- config.target:
table
- enabled:
boolean
- Enable or disable the 3d eye / target systemL Default:
true
- Enable or disable the 3d eye / target systemL Default:
- resource:
string
- Set the target resource. Supported: "ox_target", "custom". Default:
"ox_target"
- Set the target resource. Supported: "ox_target", "custom". Default:
- icon:
string
- Set ox_target icon. Accepts any font-awesome free icons. Can be ignored if using custom target resource. Default:
"fas fa-fire"
- Set ox_target icon. Accepts any font-awesome free icons. Can be ignored if using custom target resource. Default:
- distance:
integer
- Set ox_target interact distance. Can be ignored if using custom target resource. Default:
3
- Set ox_target interact distance. Can be ignored if using custom target resource. Default:
- customTarget:
function
- Add your custom target function here. This gets ran on the client, and should not be iterated nor put in a thread. List of available models are:
tam_firesign_a
,tam_firesign_b
,tam_firesign_c
,tam_firesign_d
,tam_firesign_e
. Leave empty if not using a custom target resource.
- Add your custom target function here. This gets ran on the client, and should not be iterated nor put in a thread. List of available models are:
- enabled:
Spawns
You can remove or add custom locations around the map in the data/spawns.lua
file. Be sure to follow this format:
local spawns = {
{
coords = { -- xyz coordinants of where the sign should be.
x = -1488.623779296875,
y = 4989.982421875,
z = 63.20363998413086
},
heading = 49.19453811645508, -- heading or rotation of the sign. May have to add 90 to it.
model = `tam_firesign_a`-- model hash to spawn. Do not use GetHashKey()!
}, -- don't forget a comma here.
}
Locales
You can easily change all locales in the locales
directory. Edit the .json file of the respective language you want to change. Clients are able to set their preferred language via /ox_lib
command. See more information here (opens in a new tab)
If you want to add a new language, simply copy one of the .json files and rename it to the relative ISO Language Code (opens in a new tab), then begin translating. If you wish to submit your translate to be release, please open a ticket in our Discord.