12.01.2016, 12:47
You'll have to define what vehicle IDs get what object and on what location:
( Wiki post: https://sampwiki.blast.hk/wiki/GetPlayerVehicleID )
For your code, noting that the bullet has to be vehicle ID 1:
objectid should be 19419 ( I believe, as I can see from your post )
vehicleid should be 1 ( or whatever the ID of the vehicle is )
( Wiki post: https://sampwiki.blast.hk/wiki/GetPlayerVehicleID )
Код:
(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)
PHP код:
AttachObjectToVehicle(objectid, vehicleid, 0.034999, -0.379994, 0.519999, 0.000000, 0.000000, 0.000000); //Object Model: 19419 |
vehicleid should be 1 ( or whatever the ID of the vehicle is )
PHP код:
AttachObjectToVehicle(19419, 1, 0.034999, -0.379994, 0.519999, 0.000000, 0.000000, 0.000000); //Object Model: 19419 |