1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-06 19:19:16 +02:00
parent cf533de903
commit ed382892bd
273 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,46 @@
local maps = {
"prompt_sandy_motel",
"prompt_sandy_gasstation_carwash",
"prompt_sandy_compound",
"prompt_sandy_church",
"prompt_sandy_classic_car_dealership",
"prompt_sandy_cityhall",
"sandy_shores_houses_pt1",
"prompt_sandy_train_station",
"prompt_sandy_beaches",
"cfx_chuz_sandy_shores_boat_house",
"prompt_sandy_sheriff",
"prompt_sandy_hospital",
"prompt_sandy_airfield",
"cfx_prompt_sandy_shores_fire_department"
}
local events = {}
CreateThread(function()
local exists = false
TriggerEvent("lyn-mapdata:exists", function(exists)
if exists then
exists = true
end
end)
if exists == true then
print("^6[Prompt]^1 Map data already exists. There must be only one mapdata installed!^0")
end
end)
RegisterNetEvent("lyn-mapdata:exists", function(cb)
cb(true)
end)
for i = 1, #maps do
local eventName = maps[i] .. ":mapDataExists"
if Debug == true then
print("Creating event: ", eventName)
end
local event = RegisterNetEvent(eventName, function(cb)
cb(true)
end)
table.insert(events, event)
end