Jump to content

createVehicle Bugged?


iPrestege

Recommended Posts

Posted

Hello All, Will am working on my script but when the script trying to create the vehicle i get a error i don'n know from what is it and the create vehicle function have 4 arguments but i get the argument 5 got none on the debug?

the code on the client side ;

vehicle = {} 
vehicle[1] = createVehicle (411,  662.56219482422,1726.8951416016,6.9921875); 

Am waiting for the answer!

Thanks!!

Posted
That code has no errors.

Yes,I know that and when i get this error i change it to ;

vehicle = {} 
vehicle[1] = createVehicle (411,  662.56219482422,1726.8951416016,6.9921875,_); 

And the same error bad arguemtn @ createVehicle argument 5 got none!

:?!?

Posted
Just remove the _ because it isn't a needed argument:
vehicle = {} 
vehicle[1] = createVehicle (411,  662.56219482422,1726.8951416016,6.9921875) 

I Know that you can see in the first code i don't use it but when i get the error i try it but nothing .

Posted
I don't get any error with your original code, the vehicle is created successfully.

Will you are right! but the vehicle created on my friend device and my device nothing just this error?

Posted

Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.

Posted
Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.

I Know that and the vehicle should created and am not beginner for that :? and the vehicle should created : ) and don't say that wrong because it work's before but i don't know what happened after change the mta version .

Posted

You have error somewhere else and the debug showing you other thing.

It's better to post full code or no one can help you.

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...