How to add vehicle component on gamemodint
#1

how to add vehicle component when the gamemode enter......

Images;




This two vehicles are modified when the gamemode enter :/
Reply
#2

These are not components, they are objects. We're not here to simply ripoff other servers for you.
Reply
#3

You need to use "AttachObjectToVehicle".

First you create object, and before you attach the object

Код:
new objectid = CreateObject(...);
new vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
//Or this
new objectid = CreateObject(...);
new vehicleid = CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60);
AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)