CreateDraftVehicle — RedM Natives
0x214651FB1DFEBA89 · VEHICLE · all
Identical to CREATE_VEHICLE, but lets you control which draft horses spawn when the game auto-attaches harness animals. Set draftAnimalPopGroup to a DRAFT_HORSES_* pop group hash; set bDontAutoCreateDraftAnimals to true to skip auto-spawning entirely. Regional draft horse groups: These control the standard distribution of horses pulling wagons based on territory: - DRAFT_HORSES_SOUTHERN — Spawns standard heavy breeds (like the Belgian or Shire) common around Lemoyne, Saint Denis, and the bayou regions. - DRAFT_HORSES_NORTHERN — Spawns rugged draft variants built for cold climates, commonly seen around Ambarino and Valentine. - DRAFT_HORSES_WESTERN — Spawns draft variants optimized for drier, rugged environments like West Elizabeth and New Austin. Socioeconomic & industrial groups: These determine the quality, coat variants, and state of the draft animals based on the financial status of the zone: - DRAFT_HORSES_POOR — Spawns lower-tier, beaten-up, or common draft models typically seen pulling cargo wagons in poor farming communities, slums, or mining camps (like Annesburg). - DRAFT_HORSES_MID — The baseline average group. Spawns clean, standard-grade draft variants for standard town delivery wagons. - DRAFT_HORSES_RICH — Spawns high-end, pristine, or rare-coated draft variants reserved for luxury coaches or high-class transport (frequently seen in the wealthy districts of Saint Denis). Specialized functional groups: - DRAFT_HORSES_FARM — Tailored strictly to agricultural zones, spawning animals meant for heavy plowing, hay wagons, or ranch utility carts. - DRAFT_HORSES_STAGECOACH — Optimized for high-end public transit vehicles. These focus heavily on matching team configurations (e.g., matching four-horse teams of the same breed/coat style). Usage: ``lua local retval = CreateDraftVehicle(modelHash, x, y, z, heading, isNetwork, bScriptHostVeh, bDontAutoCreateDraftAnimals, draftAnimalPopGroup, p9) -- Option A: Hash the string directly (use lowercase for joaat) local popGroupHash = joaat("draft_horses_southern") -- Option B: Use the pre-calculated hash integer local popGroupHash = 3190104953 `` Pre-calculated joaat hashes: | Group | Hash | Hex | |---|---|---| | DRAFT_HORSES_SOUTHERN | 3190104953 | 0xBE252379 | | DRAFT_HORSES_NORTHERN | 3016566292 | 0xB3CD2614 | | DRAFT_HORSES_WESTERN | 4244744145 | 0xFD01A7D1 | | DRAFT_HORSES_POOR | 3204433874 | 0xBEFFC7D2 | | DRAFT_HORSES_MID | 2961454031 | 0xB08433CF | | DRAFT_HORSES_RICH | 408782868 | 0x185D8814 | | DRAFT_HORSES_FARM | 1994583957 | 0x76E2EF95 | | DRAFT_HORSES_STAGECOACH | 532181714 | 0x1FB872D2 |