bindKey("aim_weapon", "both",function(key, state)
local weapon = getPedWeapon(getLocalPlayer())
if weapon ~= 0 and weapon ~=1 and weapon ~= 34 then
if state == "down" then
addEventHandler("onClientRender", root, drawCrosshair)
else
removeEventHandler("onClientRender", root, drawCrosshair)
end
end
end
)
[ [18:30:03] Starting c_dayz [ [18:30:05] WARNING: c_dayz/cross_pod.lua:11: Bad argument @ 'bindKey' [Expected [ player at argument 1, got string 'aim_weapon'] [ [18:30:05] Start up of resource c_dayz cancelled by script [ [18:30:05] Stopping c_dayz [ [18:30:05] start: Resource 'c_dayz' start was requested (Start up of resource ca [ ncelled by script)
What's the problem here?