Fern

User

Joined on Aug 25 2020

OnVehicleResprayAtGarage problem
Closed
Snapshot 4.1.3
It has too long name (31 characters limit) for YSI so it is not possible to use it. Is there any workaround?

"symbol "@[email protected]" is truncated to 31 characters"
hook OnVehicleResprayAtGarage(playerid, vehicleid, color1, color2, color3, color4) {
//some code
}

dkluin

Project Leader

Joined on May 11 2016

Posted 8 months ago

Hmm. What are you trying to do with YSI?

Fern

User

Joined on Aug 25 2020

Posted 8 months ago

I just want to use this native to add some code (reduce the wanted level after respray the vehicle) and it doesn't work in the compiler. I don't know how to run this native.

dkluin

Project Leader

Joined on May 11 2016

Posted 8 months ago (edited)

Then you don't need to hook it. This is simply a problem with whatever is mangling the names - as it shouldn't prepend/append characters to mangled names like that. Simply define OnVehicleResprayAtGarage without hooking and it will do what you want it to do.