hi,
when I try the command /AI it gives this error in server console: attempt to call global 'setPedAnalogControlState' (a nil value)
It spawns the ped,vehicle and puts ped into the vehicle but doesnt start driving forward for some reason. How can I fix this?
function AIo ( playerSource )
local x, y, z = getElementPosition ( playerSource )
local ped = createPed(194,x,y,z)
local vehicle = createVehicle ( 411, x, y, z)
warpPedIntoVehicle (ped, vehicle)
setPedAnalogControlState(ped, 'accelerate', 1)
end
addCommandHandler ( "AI", AIo)