๐ฎFiveM Lua Lib
A comprehensive Lua library for FiveM development that provides utilities, helpers, and common patterns to streamline server and client-side scripting.
Last updated
A comprehensive Lua library for FiveM development that provides utilities, helpers, and common patterns to streamline server and client-side scripting.
Last updated
ensure jd-library
ensure your-script-name-- For client usage
client_script '@jd-library/init.lua'
-- For server usage
server_script "@jd-library/init.lua"-- Events
events:on('playerSpawned', function()
print('Player spawned!')
end)
-- Players
players:setHp(200)
players:tp({x = 100, y = 200, z = 30})
-- Vehicles
local vehicle = vehicles:spawn('adder', players:pos())
-- Utils
utils:print('Health: {1}', players:hp())