David_Letzelter Posted September 16, 2022 Posted September 16, 2022 Hello, With C# server side, I can't spawn a custom vehicle. For example, I add the Obey Argento ( https://fr.gta5-mods.com/vehicles/obey-argento-add-on-sounds-lods ) to my server. With javascript, no problem to spawn the vehicle, whatever if it's in client side or in server side. But in C#, the cmd don't work with the Obey Argento. This is the command : If I write "/veh argento", the script go to "hash == 0" and write "Nom de véhicule invalide" in game. No problem with other vehicles, for example "/veh infernus" spawn a infernus. I don't understand why. Does someone have an idea please ? Sorry for bad english
Xabi Posted September 20, 2022 Posted September 20, 2022 VehicleHash is an enum that only contains the vehicles in gtav. You need to use the uint hash value. 1
David_Letzelter Posted September 21, 2022 Author Posted September 21, 2022 Thanks ! I try this and it's work :
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