Jump to content

[Ayuda]OnClientPlayer Vehicle


Brad96

Recommended Posts

function car( thePlayer ) 
local x, y, z = getElementPosition ( thePlayer ) 
vehiculo = createVehicle ( 411, x + 5, y, z ) 
objeto = createObject (359, x, y, z, 0 ,0 ,90) 
attachElements ( vehiculo , objeto , -1 ,2 ,00.1 ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), car ) 

esta bien ese script ? crea el auto pero no puedo entrar en el

yo opino que es el onResourceStart es para resource y no para el jugador osea , como estoy incluyendo al PLAYER .. no me

servira xq estoy usando onClientResourceStart .. estoy bien ? y con que evento podria funcionar ? gracias

Link to comment
function car( thePlayer ) 
local x, y, z = getElementPosition ( thePlayer ) 
vehiculo = createVehicle ( 411, x + 5, y, z ) 
objeto = createObject (359, x, y, z, 0 ,0 ,90) 
attachElements ( objeto, vehiculo, -1 ,2 ,00.1 ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), car ) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...