Jump to content

isa_Khamdan

Members
  • Posts

    484
  • Joined

  • Last visited

Everything posted by isa_Khamdan

  1. Nothings changed , it works for few seconds then it stop
  2. hmm the problem is that the vehicle has been created on the server-side So can I trigger a client event and the source will be the pedOccupiedVehicle and on the client side there will be an event to make the nitro effect last for a period of time so do you think this is going to work?
  3. Hello , Is it possible to make the nitro effect last for a period of time without stopping?
  4. Hello , How can I save weapons on death?
  5. Server side function serverCamera() triggerClientEvent ( source ,"setCamera", source ) end addEventHandler("onPlayerLogin", getRootElement(), serverCamera)
  6. Hello , How can I get all resources and restart them after a period of time? I know how to do it for single resource but I don't know how to use ( for k,v do things ) to do it for all together.
  7. Can you please remove the join & quit messages from the script because I have a custom one and since that the script is compiled I can't remove the codes from it and the link for the UnCompiled version of the script isn't working
  8. Yes it's working fine now but how can I make it bind the key for all players not just the player who just joined.
  9. like this? function toggleFlashingLights ( thePlayer , key, keyState ) if getPlayerOccupiedVehicleSeat ( thePlayer ) == 0 then if vehicles[getPlayerOccupiedVehicle ( thePlayer )] then killTimer ( vehicles[getPlayerOccupiedVehicle ( thePlayer )] ) vehicles[getPlayerOccupiedVehicle ( thePlayer )] = nil else vehicles[getPlayerOccupiedVehicle ( thePlayer )] = setTimer ( toggleVehicleLights, 250, 0, getPlayerOccupiedVehicle ( thePlayer ) ) end end end addCommandHandler ( "flash", toggleFlashingLights ) function bind () bindKey ( source , "]", "down", toggleFlashingLights ) end addEventHandler ( "onPlayerJoin", getRootElement(), bind )
  10. Hmm , how can I define it since it's outside the function?
  11. Hello I am getting little problem with this code it tells me that there are bad arguments with the bind key but I am 100% sure that's it's correct but I don't know why it doesn't work function toggleFlashingLights ( thePlayer , key, keyState ) if getPlayerOccupiedVehicleSeat ( thePlayer ) == 0 then if vehicles[getPlayerOccupiedVehicle ( thePlayer )] then killTimer ( vehicles[getPlayerOccupiedVehicle ( thePlayer )] ) vehicles[getPlayerOccupiedVehicle ( thePlayer )] = nil else vehicles[getPlayerOccupiedVehicle ( thePlayer )] = setTimer ( toggleVehicleLights, 250, 0, getPlayerOccupiedVehicle ( thePlayer ) ) end end end addCommandHandler ( "flash", toggleFlashingLights ) bindKey ( thePlayer , "]", "down", toggleFlashingLights )
  12. The file is corrupt that's the reason.
  13. local account = getPlayerAccount(source) local accname = getAccountName(account) if isObjectInACLGroup("user."..accname,aclGetGroup("Group Name")) then
  14. How can I use this " name:gsub ( "#%x%x%x%x%x%x", "" ) " to set a gui label to a player name without the color codes? I don't know how to use these gsub things
  15. Hello , I made a code that set the player name to a gui label but I am getting a little problem the name shows with the color codes so is there anyway to remove them before setting the label text?
  16. Restarting resources every minute will cause lag on your server , so you better go and try to fix it instead of restarting it.
  17. use SetCameraTarget Then spawn the player to stop the ' dancing camera ' after that use setCameraMatrix
  18. Post the script that causes the crash.
  19. use createPed createVehicle warpPedIntoVehicle setPedControlState
  20. Thanks for your help.
×
×
  • Create New...