PDA

View Full Version : How to add vehicle component on gamemodint


akib
18/07/2017, 02:36 AM
how to add vehicle component when the gamemode enter......

Images;
http://i.imgur.com/Du2hoRx.png
http://i.imgur.com/f7i9ryv.png


This two vehicles are modified when the gamemode enter :/

Sew_Sumi
18/07/2017, 03:14 AM
These are not components, they are objects. We're not here to simply ripoff other servers for you.

SmileJack
18/07/2017, 04:24 AM
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);