Death System
Installation
Full installation guide to get this script up & running in no time.
Download Asset(s)
Login to your Granted Assets - CFX Portal
Download RxZ_DeathSystem
Download Dependencies
Dependency | Required |
---|---|
fmLib | |
es_extended OR qb-core OR qbx_core | |
ox_lib |
Ensuring Asset(s)
To make sure the asset(s) starts & works properly we need to make sure all asset(s) start in the correct order in your server.cfg. Below you can find an example of how it can look like.
You can also create a folder called
[rx]
in your resource folder. If you own multiple scripts from RX, you will not need to add them all to your server.cfg seperately.server.cfg
# 1. Start framework
ensure es_extended or qb-core or qbx_core
# 2. Start ox_lib
ensure ox_lib
# 3. Start your inventory
ensure your_inventory
# 4. Finally, start our asset singularly
ensure RxZ_DeathSystem
# Or, start all of our assets at once
ensure [rx]
FAQ
hrs_base_building
search for your getBed()
function, and paste the function below, under the getBed() function. In
function getBeds()
local beds = {}
for k,v in pairs(props) do
if Config.Models[v.hash].type == "beds" then
if v.identifier == identifier then
beds[#beds+1] = {
coords = v.coords,
heading = v.heading,
bedKey = v.id..'_'..v.hash
}
end
end
end
return beds
end
exports('getBeds', getBeds)
client/opensource.lua
and replace the line below Go to our script,
lib.callback.await("ds:fetchBeds", false, false);
with this line, make sure hrs_base_building is the name of the script
exports.hrs_base_building:getBeds()