forked from Simnation/Main
Update client.lua
This commit is contained in:
parent
2a4f65d95f
commit
fae041a7d8
1 changed files with 20 additions and 0 deletions
|
@ -4,6 +4,23 @@ local trackingBlips = {}
|
||||||
local inTrackingZone = false
|
local inTrackingZone = false
|
||||||
local currentLocation = nil
|
local currentLocation = nil
|
||||||
|
|
||||||
|
-- Safety check for Config
|
||||||
|
if not Config then
|
||||||
|
Config = {}
|
||||||
|
Config.TrackingLocations = {
|
||||||
|
{
|
||||||
|
coords = vector3(369.79, -1588.01, 29.43),
|
||||||
|
radius = 2.0,
|
||||||
|
job = {"police"},
|
||||||
|
label = "Polizei Tracking System"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Config.EnableCommand = true
|
||||||
|
Config.Command = "tracking"
|
||||||
|
Config.InteractKey = 38
|
||||||
|
print("^1Warning: Config not loaded properly, using default values^7")
|
||||||
|
end
|
||||||
|
|
||||||
-- Command to open tracking menu (if enabled in config)
|
-- Command to open tracking menu (if enabled in config)
|
||||||
if Config.EnableCommand then
|
if Config.EnableCommand then
|
||||||
RegisterCommand(Config.Command, function()
|
RegisterCommand(Config.Command, function()
|
||||||
|
@ -30,6 +47,9 @@ if Config.EnableCommand then
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Rest of your client.lua code...
|
||||||
|
|
||||||
|
|
||||||
-- Check if player is near a tracking location
|
-- Check if player is near a tracking location
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
while true do
|
while true do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue