nagugg
-
Posts
3 -
Joined
-
Last visited
Posts posted by nagugg
-
-
-
THE ERRORS ARE:
WARNING!:bad argument "isPedInVehicle" [Expected ped at argument 1, got string "repair"]
WARNING!:bad argument "outputChatBox" [Expected bool at argument 5, got number "0"]
and my script is this: (the chatbox are in spanish)
function mecanico ( thePlayer )
car= getPedOccupiedVehicle ( thePlayer )
if isPedInVehicle( thePlayer ) then
outputChatBox("reparaste el auto correctamente", thePlayer, 255, 255, 0)
fixVehicle( car )
else
outputChatBox("No estas en el vehiculo para reparar el coche", thePlayer, 255, 0, 0)
end
end
addEventHandler("onPlayerVehicleEnter", getRootElement(), mecanico)
addCommandHandler("reparar", mecanico)any solution please??
Teams Tag
in Scripting
Posted
any help?
bump