That code sucks.
Timer will keep on running on...
You should just use a timer with 10000 instead of 1000 and then just trigger
It's on client side, the timer would stop when the player gets redirected, please, use common since. I was just setting it up for how Malig wanted it, not how I think it should be.
((Not Tested))
You can try this.
local s = 10
function timer2 ( )
s = s - 1
if ( s <= 0 ) then
triggerServerEvent ( "redirection", localPlayer )
end
end
setTimer ( timer2, 1000, 0 )
Well, sounds like the players weapon stat's arn't set. When they are set to the max, then player can have the gun at solder fire rather than just hip fire. You could try something like:
setPedStat ( thePlayer, 78, 999 )
You should use the default MTA database functions.
https://wiki.multitheftauto.com/wiki/Se ... _functions
Really the only reason people now use the MySQL module is for vG scripts.
(As far as I know, the MySQL Module only works on a 32-bit operating system.)
You are trying to get the length of a table with string.len... Use:
if ( #BigArrayForSave > #lastBigArray ) then
Not sure, but that could be the problem.
All you need to do is create a new edit box, when the user clicks "Place Speaker" make a new argument in the triggerServerEvent with the sound level. In the server side, you need to place the sound argument in triggerClientEvent and then for setSoundMaxDistance, replace "reach" with the distance.. Sounds complicated, I know but it's very simple.
When the player dies, you an loop through their weapons, insert them into a table and then when the player spawns, check to see if the index exists and if it does give them their weapons backs.