pls help me i am new to scripting and i made this script.
its loaded and running but it doesnt react when i type /test.
function Chopper ( command )
local player = getLocalPlayer
local Account = getAccountName ( getPlayerAccount ( player ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
local Px, Py, Pz = getElementPosition ( player )
local Rx, Ry, Rz = getElementRotation ( player )
local vehicle = getPedOccupiedVehicle ( player )
destroyElement ( vehicle )
local vehicle2 = createVehicle ( 497, Px, Py, Pz, Rx, Ry, Rz )
warpPedIntoVehicle ( player, vehicle2 )
else outputChatBox ( "You can not execute this command!", player )
end
addCommandHandler ( "test", Chopper )