Estou desenvolvendo esse Script do zero , e ele esta me dando erros no "toggleAllControls" e o "setElementFronzen" no "setTimer" no serverSide!
Essa é a Linha do script :
function fabricarParafal ()
local money = getPlayerMoney ( source )
if ( money >= 1000) then
takePlayerMoney (source, 1000)
setElementFrozen (source, true)
toggleAllControls (source, false)
setPedAnimation (source, "UZI", "UZI_reload", 5000, true, false, false, false)
giveWeapon (source, 31, 100, true)
outputChatBox ("#708090[ #FF0000 ᴠᴇɴᴅᴇᴅᴏʀ ᴅᴇ ᴀʀᴍᴀs #708090] #FFFFFF ᴠᴏᴄᴇ ᴇsᴛᴀ ғᴀʙʀɪᴄᴀɴᴅᴏ ᴜᴍᴀ #000000 ᴘᴀʀᴀғᴀʟ #FFFFFF !.", source, 255, 255, 255, true)
setTimer(function()
setElementFrozen(source, false)
toggleAllControls (source, true)
end, 5000, 1)
else
outputChatBox ("#708090[ #FF0000 ᴠᴇɴᴅᴇᴅᴏʀ ᴅᴇ ᴀʀᴍᴀs #708090] #FFFFFF ᴠᴏᴄᴇ ɴᴀᴏ ᴛᴇᴍ #000000 ᴅɪɴʜᴇɪʀᴏ #FFFFFF !.", source, 255, 255, 255, true)
end
end
addEvent ("fParafal", true)
addEventHandler("fParafal", getRootElement(), fabricarParafal)
https://prnt.sc/udbg98
e se eu Corrigir isso colocando o "source" na linha "function fabricarParafal (..source..)" , ele nao funciona a verificaçao do Dinheiro