AE. Posted September 8, 2016 Share Posted September 8, 2016 (edited) hey guys can you tell me why the vehicle is not showing ?? function ( ) local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) warpPedIntoVehicle ( Ped, Vehicle ) end Edited September 9, 2016 by jhxp Changed topic title Link to comment
Captain Cody Posted September 8, 2016 Share Posted September 8, 2016 function test ( ) local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) warpPedIntoVehicle ( Ped, Vehicle ) end test ( ) Link to comment
Walid Posted September 9, 2016 Share Posted September 9, 2016 (edited) -- Added addCommandHandler (press T /cv) function cv(player) local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) warpPedIntoVehicle ( Ped, Vehicle ) end addCommandHandler("cv",cv) -- Or create it onResourceStart function cv() local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) warpPedIntoVehicle ( Ped, Vehicle ) end addEventHandler ("onResourceStart", resourceRoot, cv ) Edited September 9, 2016 by Walid Link to comment
MTA Team jhxp Posted September 9, 2016 MTA Team Share Posted September 9, 2016 Please use more descriptive topic titles in the future, instead of just help. Thanks. Link to comment
AE. Posted September 9, 2016 Author Share Posted September 9, 2016 7 hours ago, Walid said: -- Or create it onResourceStart function cv() local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) warpPedIntoVehicle ( Ped, Vehicle ) end addEventHandler ("onResourceStart", resourceRoot, cv ) it did create the vehicle but it did not warp the ped ... Link to comment
KariiiM Posted September 9, 2016 Share Posted September 9, 2016 function cv() local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) setTimer ( warpPedIntoVehicle, 200, 1, Ped, Vehicle ) end addEventHandler ("onResourceStart", resourceRoot, cv ) Link to comment
AE. Posted September 9, 2016 Author Share Posted September 9, 2016 5 minutes ago, KariiiM said: function cv() local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) setTimer ( warpPedIntoVehicle, 200, 1, Ped, Vehicle ) end addEventHandler ("onResourceStart", resourceRoot, cv ) thxxxx it works Link to comment
AE. Posted September 9, 2016 Author Share Posted September 9, 2016 hey do you have skype ? Link to comment
AE. Posted September 9, 2016 Author Share Posted September 9, 2016 oh can i have it .. ? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now