0 Üye ve 1 Ziyaretçi konuyu incelemekte.
Linki görebilmek için Kayıt olun yada Giriş yapın.Linki görebilmek için Kayıt olun yada Giriş yapın.
function attachTrailer ( theVehicle, seat, jacked ) if ( getElementModel ( theVehicle ) == 515 ) then -- if its a roadtrain trailer = createVehicle ( 435, 305, 1855, 18 ) -- create a trailer attachTrailerToVehicle (theVehicle, trailer) -- Attach trailer to car end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), attachTrailer )
<meta> <script src="server.lua"/></meta>
function attachTrailer ( theVehicle, seat, jacked ) if ( getElementModel ( theVehicle ) == 515 ) then local x,y,z = getElementPosition( theVehicle ) local x1,y1,z1 = getElementRotation( theVehicle ) trailer = createVehicle ( 435, x, y, z, x1,y1,z1 ) attachTrailerToVehicle (theVehicle, trailer) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), attachTrailer )