function aa (playerSource)
local vehicle = getPedOccupiedVehicle(playerSource)
if vehicle then
setVehicleFrozen(vehicle,true)
setElementPosition (vehicle, 384.0750,2541.4612,16.5391)
setTimer(setVehicleFrozen,500,1,vehicle,false)
else
setElementPosition (playerSource, 384.0750,2541.4612,16.5391)
end
outputChatBox ("You Have Been Teleported To The Old Airport!!", playerSource, 0, 255, 0)
end
addCommandHandler ( "aa", aa )
---- This Command above works fine...
Now this doesnt work see
function sf (source)
local vehicle = getPedOccupiedVehicle(playerSource)
if vehicle then
setVehicleFrozen(vehicle,true)
setElementPosition (vehicle, -2621.7676,1396.3899,7.1016)
setTimer(setVehicleFrozen,500,1,vehicle,false)
else
setElementPosition (playerSource, -2621.7676,1396.3899,7.1016)
end
outputChatBox ("You Have Been Teleported To San Fierro!!", playerSource, 0, 255, 0)
end
addCommandHandler ( "sf", sf )
Edit : By the way im getting those warnings in the console
P.S Im editing broph..