13.05.2018, 00:58
Hello guys, so I have a /siren cmd:
Note that this command worked good before I added an interior with mapping to the gamemode.
This command (it's not all in there) will activate, create and attach that object "18646", the lil siren. The problem is that when I use /siren, a random object gets spawned and attached to the vehicle, and it's so annoying. I thought it could be a problem with interiors or something, but I have no idea. Any help is appreciated, and I'll +rep for sure if you can help me. Thank you
PHP код:
VehSirenState[vehicleid] = 1;
VehSirenObject[vehicleid] = CreateDynamicObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachDynamicObjectToVehicle(VehSirenObject[vehicleid], vehicleid, 0.225000,0.524999,0.375000,0.000000,0.000000,0.000000); Blah blah blah
This command (it's not all in there) will activate, create and attach that object "18646", the lil siren. The problem is that when I use /siren, a random object gets spawned and attached to the vehicle, and it's so annoying. I thought it could be a problem with interiors or something, but I have no idea. Any help is appreciated, and I'll +rep for sure if you can help me. Thank you