Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script Lucid-gps qbus

Lilibeth

Gold Elite
Joined
Jul 4, 2021
Messages
186
Reaction score
57,288
Points
316
✌️Hello VAG Forum Family✌️
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


YgG39as.jpeg

SETUP
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

giczgGD.png


✔️

GOOD FORUMS🖋️
 

simple_034

Bronze Elite
Joined
Oct 14, 2021
Messages
5
Reaction score
22
Points
156
Location
Belgium
i think you're missing a couple of steps. QBCore.Functions.ExecuteSql doesn't exist. how to fix?
147.135.31.196_-_Remote_Desktop_Connection_2021-10-15_02-05-27.png


edit: QBCore.Functions.ExecuteSql was part of an older version of qb-core, replaced it with
exports.oxmysql:execute for the latest version of qb-core.
 
Last edited:

hamzafelfal

Member
Joined
Mar 5, 2022
Messages
7
Reaction score
1
Points
156
Location
Morocco
✌️Hello VAG Forum Family✌️
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


View attachment 1341
SETUP
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

View attachment 1342
*** Hidden text: cannot be quoted. ***

✔️

GOOD FORUMS🖋️
 

thekiller23412

Silver Elite
Joined
Aug 27, 2022
Messages
18
Reaction score
57
Points
231
Location
Germany
it needs a lot of fixes and improvements, also that's not what i wanted, i wanted gps that can be tracked on any vehicle and give you auctor and update location automatically.and that that what i did. if anyone needs it tell me
 
Top