WiBox Posted November 11, 2018 Share Posted November 11, 2018 I need to warp players into vehicles, 10 players... When I use warpPedIntoVehicle they gave me a warning at /debugscript 3 that's they want a Ped arguments and the player return to nil. Anyone has a idea? Link to comment
Addlibs Posted November 11, 2018 Share Posted November 11, 2018 How us the relevant part of the code. It's most likely that you're calling the function with a variable of nil value, or an expired userdata reference such as a player who has already quit or something. Link to comment
WiBox Posted November 13, 2018 Author Share Posted November 13, 2018 I tried it using a simple code as a test: I tried in server side as: car = createVehicle( 411, 0, 0, 1, 0, 0 , 0) function testing() warpPedIntoVehicle( source, car) end addCommandHandler("w", testing) In client side as: car = createVehicle( 411, 0, 0, 1, 0, 0 , 0) function testing() warpPedIntoVehicle( localPlayer, car) end addCommandHandler("w", testing) At first I tried to warp only 1 player in the car, didn't work, in client side it's only for create peds as I saw at warpPedIntoVehicle but same at server side, it gave me nil at /debugscript 3 Link to comment
Dimos7 Posted November 13, 2018 Share Posted November 13, 2018 well it not goint to work like this try this server side car = createVehicle( 411, 0, 0, 1, 0, 0 , 0) function testing(thePlayer) warpPedIntoVehicle(thePlayer, car) end addCommandHandler("w", testing) 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