SA-MP Forums Archive
Vehicles respawning with black color - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicles respawning with black color (/showthread.php?tid=648841)



Vehicles respawning with black color - Saddin - 29.01.2018

Some of my vehicle that I respawn ingame change color to black.

I made test script that checks color of each vehicle and prints it in log, and I got this:

PHP Code:
[16:18:26vehicleidc1c2452525
[16:18:26vehicleidc1c2462525
[16:18:26vehicleidc1c2472525
[16:18:26vehicleidc1c2482525
[16:18:26vehicleidc1c2492525
[16:18:26vehicleidc1c2502525
[16:18:26vehicleidc1c2512525
[16:18:26vehicleidc1c2522525
[16:18:26vehicleidc1c2532525
[16:18:26vehicleidc1c2542525
[16:18:26vehicleidc1c2338475
[16:18:26vehicleidc1c2339475
[16:18:26vehicleidc1c2340475
[16:18:26vehicleidc1c2341475
[16:18:26vehicleidc1c2342475
[16:18:26vehicleidc1c2343475
[16:18:26vehicleidc1c2344475
[16:18:26vehicleidc1c2345475
[16:18:26vehicleidc1c25561, -1
[16:18:26vehicleidc1c25571, -
The colors are same as they should be but all vehicles are black...


Re: Vehicles respawning with black color - RogueDrifter - 29.01.2018

maybe you got a ChangeVehicleColors somewhere?


Re: Vehicles respawning with black color - Flamehaze7 - 29.01.2018

If the vehicle is black there may be an error with COLOR IDs somewhere in your script, like RogueDrifter said maybe somewhere you got overlapping code


Re: Vehicles respawning with black color - Mugala - 29.01.2018

if you're seeing it as a black vehicle and script reads it as an normal colored vehicle, than its client sided problem, probably caused by modding.


Re: Vehicles respawning with black color - Saddin - 29.01.2018

Quote:
Originally Posted by Mugalito
View Post
if you're seeing it as a black vehicle and script reads it as an normal colored vehicle, than its client sided problem, probably caused by modding.
nothing is modded, client log reads correct color of vehicle but i'm seeing all vehicles in black color

btw. im recoloring when it spawns so again its black color..


Re: Vehicles respawning with black color - Mugala - 29.01.2018

are you sure u're not using ChangeVehicleColor in other scripts?