mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-04 05:02:58 +08:00
Add Return Value Support for Script Functions (#3479)
* Add Return Value Support for Script Functions * Removed address-of operator on instruction_pointer parameter, as sol is pass-by-value. * Fixed reset_session_data & start_creator_script * Added support for Vector3 and updated casting for bool type for proper conversion to Lua boolean * Updated documentation for scr_function * Added get_int method and updated param names for script functions * Fix #3497 graceful landing not saved. * Added a check in view_lsc to see if the vehicle can accept clan logos first. * Fixed vehicle clan logo SP bypass not working properly. * Fixed COPY VEHICLE not giving persist_car_service::spawn_vehicle_json the target's ped so it can copy their clan logo and not ours. Fixed spawn_vehicle_json calling add_clan_logo_to_vehicle with our logo and not the ped parameter's logo. * Added Clone Player Car. * Fixed has_clan_logo check in view_lsc being given the wrong parameter. --------- Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
This commit is contained in:
@ -54,7 +54,6 @@ namespace big
|
||||
{
|
||||
looped::self_wanted();
|
||||
looped::self_hud();
|
||||
looped::self_dance_mode();
|
||||
looped::self_persist_outfit();
|
||||
|
||||
script::get_current()->yield();
|
||||
@ -149,21 +148,9 @@ namespace big
|
||||
}
|
||||
}
|
||||
|
||||
void backend::lscustoms_loop()
|
||||
{
|
||||
LOG(INFO) << "Starting script: Ls customs";
|
||||
|
||||
while (g_running)
|
||||
{
|
||||
looped::vehicle_ls_customs();
|
||||
|
||||
script::get_current()->yield();
|
||||
}
|
||||
}
|
||||
|
||||
void backend::rainbowpaint_loop()
|
||||
{
|
||||
LOG(INFO) << "Starting script: Rainbow paint";
|
||||
LOG(INFO) << "Starting script: Rainbow Paint";
|
||||
|
||||
while (g_running)
|
||||
{
|
||||
|
Reference in New Issue
Block a user