Posts: 83
Threads: 16
Joined: Sep 2014
Reputation:
0
AttachObjectToVehicle(objectid, vehicleid, 0.034999, -0.379994, 0.519999, 0.000000, 0.000000, 0.000000); //Object Model: 19419 |
I am posting this in the gamemode, no errors and when I go on the car isn't changed. its a bullet. What am I doing wrong? =1 rep whoever help!
Posts: 1,208
Threads: 36
Joined: Apr 2015
objectid this is not a modelid !!
PHP код:
new tmpobj = CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
AttachObjectToVehicle(tmpobj, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
OR
new tmpobj = CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD);
AttachDynamicObjectToVehicle(tmpobj, vehicleid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz);
Posts: 83
Threads: 16
Joined: Sep 2014
Reputation:
0
thanks guy gave all 3 of u rep!