local allSkins = 0
addEventHandler ( "onPlayerJoin", root,
function ( peds )
local allSkins = getValidPedModels ( )
bindKey ( player, "arrow_r", "down", peds )
allSkins = allSkins + 1
bindKey ( player, "arrow_l", "down", peds )
allSkins = allSkins -1
h = createPed ( 120, 2491.2412109375, -1675.3841552734, 30.133781433105 )
p = createObject ( 1337, 2491.2412109375, -1675.3841552734, 30.133781433105 )
setElementFrozen ( h, true )
setCameraMatrix ( 2492.833984375, -1666.5686035156, 22.295654296875 )
bindKey ( player, "enter", "down", peds )
setElementModel ( player, allSkins )
spawnPlayer ( player, -2417.2517089844, 602.68542480469, 132.5625 )
end)
i make this code
6: Bad argument @ 'bindKey'
7: attempt to perform arithmetic on local 'allSkins ' a table value
Any one Help me the code not worked