CreateScriptVehicleGenerator — FiveM Natives
0x9DEF883114668116 · VEHICLE · all
`` Creates a script vehicle generator at the given coordinates. Most parameters after the model hash are unknown. Parameters: a/w/s - Generator position heading - Generator heading p4 - Unknown (always 5.0) p5 - Unknown (always 3.0) modelHash - Vehicle model hash p7/8/9/10 - Unknown (always -1) p11 - Unknown (usually TRUE, only one instance of FALSE) p12/13 - Unknown (always FALSE) p14 - Unknown (usally FALSE, only two instances of TRUE) p15 - Unknown (always TRUE) p16 - Unknown (always -1) Vector3 coords = GET_ENTITY_COORDS(PLAYER_PED_ID(), 0); CREATE_SCRIPT_VEHICLE_GENERATOR(coords.x, coords.y, coords.z, 1.0f, 5.0f, 3.0f, GET_HASH_KEY("adder"), -1. -1, -1, -1, -1, true, false, false, false, true, -1); ``
Parameters
| Name | Type |
|---|---|
| x | float |
| y | float |
| z | float |
| heading | float |
| p4 | float |
| p5 | float |
| modelHash | Hash |
| p7 | int |
| p8 | int |
| p9 | int |
| p10 | int |
| p11 | BOOL |
| p12 | BOOL |
| p13 | BOOL |
| p14 | BOOL |
| p15 | BOOL |
| p16 | int |
Returns
int