Today i made better community service with qb-input
Extra Functions
Saves Coms to metada ( no database required)
If u restart script coms automaticly loads
Using qb-input better usage
MENU IMAGE
SETUP
qbcore/server/player.lua
QBCore.Player.CheckPlayerData
Under the function
add qbcore/client/functions
function QBCore.Functions.RequestAnimDict(animDict)
if HasAnimDictLoaded(animDict) then return end
RequestAnimDict(animDict)
while not HasAnimDictLoaded(animDict) do
Wait(0)
end
end```
PlayerData.metadata["communityservice"] = PlayerData.metadata["communityservice"] ~= nil and PlayerData.metadata["communityservice"] or 0
Requirements
qb-input
All Credits
esx_communityservice