Skip to content

Conversation

@Xiseous
Copy link

@Xiseous Xiseous commented Dec 25, 2025

"ScriptLocal" provides access to local variables within running scripts.

Unlike "ScriptGlobal" which accesses global variables shared across all scripts, "ScriptLocal" accesses variables that are specific to a particular script instance's execution context.

"ScriptLocal" provides access to **local variables** within running scripts. 

Unlike "ScriptGlobal" which accesses global variables shared across all scripts, "ScriptLocal" accesses variables that are specific to a particular script instance's execution context.
fix(heist): Fixed the issue of loading repeatedly when starting a hei…
@tomnookptn
Copy link

what differ from lua "local" variables?

example with bizteroids
{B917C3CD-B705-4919-A6BD-51BFD619FB7C}

@Xiseous
Copy link
Author

Xiseous commented Dec 26, 2025

what differ from lua "local" variables?

example with bizteroids {B917C3CD-B705-4919-A6BD-51BFD619FB7C}

Use ChatGPT and ask it “what does set local do in a LUA script” because these are completely different things, also read the original pull comment on what the function does.

ScriptLocal would let you, for example be able to edit on-going game loops and create instant finish LUA scripts, to for example, instant finish a delivery mission.

@L7NEG
Copy link
Contributor

L7NEG commented Dec 26, 2025

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants