Lilibeth
Gold Elite
- Joined
- Jul 4, 2021
- Messages
- 186
- Reaction score
- 57,288
- Points
- 316
You know, server style gps system saves it as metadata after you install the gps in your vehicle, then when you use it again, it shows the location if the vehicle is outside. It only works in onesync and onesync infinity
Step 1 - You need to add the car_gps item to the item list by turning on the unique setting.
Step 2 - You need to add the code I gave below to the CreatePlayer Function of qb-core/server/player.lua
Code:
self.Functions.setItemInfo = function(slot, info)
local slot = tonumber(slot)
if self.PlayerData.items[slot] ~= nil then
self.PlayerData.items[slot].info = info
return self.PlayerData.items[slot]
end
end
Step 3 - After going to the qb-inventory and going to the html/app.js FormatItemInfo function, you need to paste the codes I gave below. After adding it, it should look like the photo
Hidden link for visitors, to see
Log in or register now.
GOOD FORUMS