Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/05/22 in all areas

  1. السلام عليكم ورحمة الله وبركاته كان عندي مود قديم بالصدفه شوفته وقولت انشره رابط المود https://community.multitheftauto.com/?p=resources&s=details&id=18699
    1 point
  2. @CronossEverything works as it should, thanks a lot for your help
    1 point
  3. Maybe adding this parameter? I had the same problem when I was testing some scripts in my server, this was the problem for me --server function j1server2() local x,y,z = 0, 0, 0 triggerClientEvent(source, "j1client",source, x,y,z) --This end addEvent("j1server2",true) addEventHandler("j1server2",root,j1server2) Also, I don't get why you add events to these functions if you are not gonna call them before with another function like "triggerServerEvent" or something like that, this should work exactly like you want: --server function j1server() local car1 = createVehicle (408, 0, 0, 0, 0, 0, 0, "car1", 0, 0, 0) j1server2() end addEvent("j1server",true) --------------------It is necessary here addEventHandler("j1server",root,j1server) function j1server2() local x,y,z = 0, 0, 0 triggerClientEvent("j1client",source, x,y,z) end addEventHandler("j1server2",root,j1server2) Another solution for me should be: --Client --Your 1st function blabla... function j1client0() triggerServerEvent("j1server",getLocalPlayer(), getLocalPlayer()) --Add this destroyElement(w1) showCursor(false) end --Server function j1server(player) local car1 = createVehicle (408, 0, 0, 0, 0, 0, 0, "car1", 0, 0, 0) --You could add the whole function j1server2, idk why you separate these functions triggerClientEvent(player, "j1client", player, x,y,z) end addEvent("j1server", true) addEventHandler("j1server",root,j1server)
    1 point
  4. Could you show how you are calling those events? (server-side part)
    1 point
  5. I like it. Where is the download button?
    1 point
×
×
  • Create New...