mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
feat(mobile): fix personal vehicle spawning far away (#978)
This commit is contained in:
parent
fa829b868f
commit
cba193750d
@ -136,7 +136,11 @@ namespace big::mobile
|
||||
|
||||
script::get_current()->yield(100ms);
|
||||
|
||||
*scr_globals::mechanic_global.at(936).as<int*>() = 1; // disable vehicle node distance check
|
||||
// only do this when spawn inside is enabled otherwise the vehicle will spawn relatively far away from players
|
||||
if (g.clone_pv.spawn_inside)
|
||||
{
|
||||
*scr_globals::mechanic_global.at(936).as<int*>() = 1; // disable vehicle node distance check
|
||||
}
|
||||
*scr_globals::mechanic_global.at(923).as<int*>() = 1; // tell freemode to spawn our vehicle
|
||||
*scr_globals::mechanic_global.at(982).as<int*>() = 0; // required
|
||||
*scr_globals::mechanic_global.at(979).as<int*>() = veh_idx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user