Jump to content

Is this possible?


Blaawee

Recommended Posts

function pedLoad () 
   local Ped = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) 
   local Vehicle = createVehicle ( 405, 5540.6654, 1020.55122, 1240.545 ) 
   warpPedIntoVehicle ( Ped, Vehicle, 0 )  -- this will put the ped as driver, you can change the seat 
end 
addEventHandler ( "onResourceStart", resourceRoot, pedLoad ) 

Link to comment

is this right ?

-------------- 
--dancer 
-------------- 
function pedLoad() 
   dancer1 = createPed(292, -1495.1926269531, 761.52935791016, 7.1834278106689, 0) 
   dancer2 = createPed(293, -1496.5218505859, 765.72064208984, 7.1875, 0) 
   dancer3 = createPed(298, -1498.4525146484, 761.25640869141, 7.1875, 0) 
   dancer4 = createPed(304, -1499.099609375, 763.75598144531, 7.1875, 0) 
   guard1 = createPed(17, -1513.1009, 764.656738, 7.1875, 0) 
   guard2 = createPed(17, -1513.09411, 761.21850, 7.1875, 0) 
   setPedRotation(dancer1, 35) 
   setPedRotation(dancer2, 100) 
   setPedRotation(dancer3, -20) 
   setPedRotation(dancer4, 150) 
   setPedRotation(guard1, 100) 
   setPedRotation(guard2, 100) 
   setPedAnimation(dancer1, "DANCING", "dnce_M_a") 
   setPedAnimation(dancer2, "DANCING", "DAN_Left_A") 
   setPedAnimation(dancer3, "DANCING", "dance_loop") 
   setPedAnimation(dancer4, "DANCING", "dnce_M_d") 
end 
addEventHandler ( "onResourceStart", resourceRoot, pedLoad ) 
  

Link to comment

i made for you This

function enterTrain(theVehicle, seat, jacked) 
    if (getVehicleType" class="kw2">getVehicleType(theVehicle) == "Train") then 
        outputChatBox("Welcome onboard!", source) 
        outputChatBox("You entered ".. getVehicleType" class="kw2">getVehicleType(theVehicle) ..".", source) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", getRootElement(), enterTrain) 

:D

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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