Jump to content

Jokeℝ1472771893

Members
  • Posts

    334
  • Joined

  • Last visited

Everything posted by Jokeℝ1472771893

  1. oh cool thnx Tapl and how to remove it ( destroy all spawned cars and marker )
  2. it's spawn marker but when i hit it nothing happened
  3. nothing ...... Edit : Tete omar removed hist post so this answer was for him
  4. I mean : When i will type /creatv 520 (example) it will make marker in my location x, y, z and when players will hit the marker it will spawn car 520 ID.
  5. it will spawn car,but i need : Make Marker and when players will hit it will spawn car
  6. i wanna make script which Functions will be : /vehspawner ID (car ID) and after that it will spawn marker and when player will hit the marker it will warp him to Vehicle (by Car ID). btw i know some of them but dunno how to make vehicle spawn with ID.
  7. it can make all ppl but only Admins can hear it. so how to fix it?
  8. function createSpeaker(thePlayer) local x, y, z = getElementPosition(thePlayer) speakerObject = createObject(2229, x, y, z-1) local acc = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then outputChatBox("You have Succesfully created a speaker!", thePlayer, 0, 250, 0) if (isPedInVehicle(thePlayer)) then local vehicle = getPedOccupiedVehicle(thePlayer) attachElements(speakerObject, vehicle) triggerClientEvent(root, "playTheSound", root, x, y, z, vehicle) else triggerClientEvent(root, "playTheSound", root, x, y, z) end end addCommandHandler("ps", createSpeaker) function deleteSpeaker(thePlayer) if (isElement(speakerObject)) then destroyElement(speakerObject) outputChatBox("You have Succesfully destroyed the Speaker!", thePlayer, 0, 0, 255) triggerClientEvent("stopTheSound", root) else outputChatBox("Speaker is not created!", thePlayer, 250, 0, 0) end end addCommandHandler("ds", deleteSpeaker) like this?
  9. ok i will post it but don't laugh on me i try to put it in all lines function createSpeaker(thePlayer) local x, y, z = getElementPosition(thePlayer) speakerObject = createObject(2229, x, y, z-1) local acc = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then outputChatBox("You have Succesfully created a speaker!", thePlayer, 0, 250, 0) if (isPedInVehicle(thePlayer)) then local vehicle = getPedOccupiedVehicle(thePlayer) attachElements(speakerObject, vehicle) triggerClientEvent(root, "playTheSound", root, x, y, z, vehicle) else triggerClientEvent(root, "playTheSound", root, x, y, z) end end addCommandHandler("ps", createSpeaker) function deleteSpeaker(thePlayer) if (isElement(speakerObject)) then destroyElement(speakerObject) outputChatBox("You have Succesfully destroyed the Speaker!", thePlayer, 0, 0, 255) triggerClientEvent("stopTheSound", root) else outputChatBox("Speaker is not created!", thePlayer, 250, 0, 0) end end addCommandHandler("ds", deleteSpeaker)
  10. function createSpeaker(thePlayer) local x, y, z = getElementPosition(thePlayer) speakerObject = createObject(2229, x, y, z-1) outputChatBox("You have Succesfully created a speaker!", thePlayer, 0, 250, 0) if (isPedInVehicle(thePlayer)) then local vehicle = getPedOccupiedVehicle(thePlayer) attachElements(speakerObject, vehicle) triggerClientEvent(root, "playTheSound", root, x, y, z, vehicle) else triggerClientEvent(root, "playTheSound", root, x, y, z) end end addCommandHandler("ps", createSpeaker) function deleteSpeaker(thePlayer) if (isElement(speakerObject)) then destroyElement(speakerObject) outputChatBox("You have Succesfully destroyed the Speaker!", thePlayer, 0, 0, 255) triggerClientEvent("stopTheSound", root) else outputChatBox("Speaker is not created!", thePlayer, 250, 0, 0) end end addCommandHandler("ds", deleteSpeaker) how to make this commands only for Admins?
  11. steal? u ask here and i test it and i find errors.
  12. if you create this Topic it's not mean that all must help u,if someone have question can ask here.
  13. I can't start Shift when i End it and i can't Quit Job if i End It.
  14. yeah thnx it's working Edit: Btw Castiol update your Gang System and i suggest u to use this turf system,add more things like (Change Turf Color,Group Information,Group Chat)
  15. yeah my bad,but when i press F2 it's show me Gui without Cursor then when i press F2 again i see only Cursor
  16. i will test it now. Thnx btw Edite:Thnx it's working perfect.
  17. addEventHandler("onVehicleEnter",root,function(player,seat,jacked) if(player)and(seat==0)then acc = getAccountName(getPlayerAccount(player)) if(isObjectInACLGroup("user."..acc,aclGetGroup("Admin")))then setVehicleDamageProof(source,true) end end end) the script work perfect,but how to make it start by command and stop(make VehicleDamageProof False).
  18. Don't work.when i press F2 nothing happened
  19. Still don't work.Something wrong in Server.Lua
×
×
  • Create New...