Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The taxi (and probably other models) can't be spawned #3

Closed
Exterminator921 opened this issue Nov 1, 2022 · 2 comments
Closed

The taxi (and probably other models) can't be spawned #3

Exterminator921 opened this issue Nov 1, 2022 · 2 comments
Labels
🥺 Help wanted Extra attention is needed

Comments

@Exterminator921
Copy link

Hey it's me again, so this is a bit more urgent than my previous posts, it seems like C# automatically registers integer numbers over a certain number as unsigned ints so it's the case with the taxi model that can't spawn and automatically makes the game crash no matter how hard I try to convert its hash to an int. I don't have this problem with other models. Thank you in advance.

@ClonkAndre
Copy link
Owner

Use either the enum eVehicle and cast it to an int or use the native GET_HASH_KEY("the_model_name"). With both of those methods, i could spawn the Taxi without any problems.

@Exterminator921
Copy link
Author

Ok really thank you you're a lifesaver

@ClonkAndre ClonkAndre added the 🥺 Help wanted Extra attention is needed label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🥺 Help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants