-
Posts
484 -
Joined
-
Last visited
Everything posted by isa_Khamdan
-
Nothings changed , it works for few seconds then it stop
-
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?
-
Hello , Is it possible to make the nitro effect last for a period of time without stopping?
-
Hello , How can I save weapons on death?
-
Server side function serverCamera() triggerClientEvent ( source ,"setCamera", source ) end addEventHandler("onPlayerLogin", getRootElement(), serverCamera)
-
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.
-
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
-
The code doesn't work
-
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.
-
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 )
-
Hmm , how can I define it since it's outside the function?
-
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 )
-
The file is corrupt that's the reason.
-
local account = getPlayerAccount(source) local accname = getAccountName(account) if isObjectInACLGroup("user."..accname,aclGetGroup("Group Name")) then
-
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
-
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?
-
Restarting resources every minute will cause lag on your server , so you better go and try to fix it instead of restarting it.
-
use SetCameraTarget Then spawn the player to stop the ' dancing camera ' after that use setCameraMatrix
-
Post the script that causes the crash.
-
use createPed createVehicle warpPedIntoVehicle setPedControlState