No matter what I do,
AddEventHandler('playerSpawned', function(spawn)
TriggerServerEvent("mm:spawn")
end)
refuses to fire. I have the event attempting to print something out on the server and it never prints, so it never gets called.
No blips on the clients map either, nothing. The resource is connect a-okay to the database and i am removing the cache between server restarts. No errors in server console.
There is also no queue event in f8 for the requestā¦ what is happening.
EDIT:
Here are the resources i am loading and their order
- chat
- spawnmanager
- fivem-map-skater
- baseevents
- ā ā ā ā ā ā ā
- hardcap # prevents the game from breaking
- scoreboard
- es_freeroam
- essentialmode
- skin #This plugin
UPDATE:
When putting
TriggerServerEvent("mm:spawn")
Into
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
print("Attempting to send session started.")
if NetworkIsSessionStarted() then
TriggerServerEvent('es:firstJoinProper')
TriggerServerEvent("mm:spawn")
return
end
end
end)
in essentialās mode it fires fine.
Something is screwy with my(?) client.lua file.
Removed everything but the marker and blips in the client file and it loaded fine. Obviously the menu didnāt work because i gutted it.
UPDATE:
Found a bunch of lines improperly (de?)commented out. Starting at line 3079
Commenting those out slightly helped. It will now say āModel loadedā but the shops do not appear on the map still.
UPDATE FINAL:
Last update was slightly wrong. I removed the markers by accident.
After commenting out the code at line 3079, it works.
For anyone using this from the last update (2.4) go to line 3079 and remove or add another dash to the lines with only 1 dash. Havenāt tried uncommented, but commented works.