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
Implementing SET_VEHICLE_MOD_KIT #111
Comments
|
Try to call Function.Call( Hash.SET_VEHICLE_MOD_KIT, veh.Handle, 0 );before applying new tint. |
|
Works perfectly now. Thank you for the help! |
|
Mh...Would be good if we have this in a method, what about |
|
Or we can just call this SET_VEHICLE_MOD_KIT function in SetMod method, WindowTint setter etc. |
|
Mh, this would create a lot of unnecessary calls, wouldn't it? Or do you have to call it before every mod-change? |
|
Not before every, but as far as I remember after certain time you should call this function again. |
|
Then I think we should go with the extra-method. |
|
Or set a boolean in the vehicle class and only call it if it's not yet set to true? |
|
@crosire , no. Like i said, after some time you should call this function again. Just go in LSC, then leave LSC and try to call SetMod method - it's works, wander around some time, try SetMod method again - it's don't work. |
|
Then save a DateTime and check if the last call is over a certain limit. |
|
@crosire , yeah, but i don't know after which time exactly it ceases to work and on what this time depends. |
|
I'd just do it like @IncoCode originally proposed. Call it on every SetMod etc. It's the safest way. |
|
Closed by 4941bc1 |
ThomasTwomey commentedMay 23, 2015
I was trying to create a quick menu for changing the window tint of your current car. Here is my code:
Player player = Game.Player;
The UI displays a message so the button works, but the windows do not change tint. I don't know if the code is wrong or if it's an issue with Scripthookdotnet. Any help is appreciated!
The text was updated successfully, but these errors were encountered: