setScriptCameraFixed
Client-side
Place the camera at one position and make it look at another, using an immediate cut or GTA's camera transition.
Syntax
bool setScriptCameraFixed(int token, Vector3 position, Vector3 target [, float upOffset = 0, bool jumpCut = true])Arguments
tokenintCurrent lease token.
positionVector3Finite camera position.
targetVector3Finite look-at target.
upOffsetfloatoptional · default 0Native vertical point-at offset.
jumpCutbooloptional · default trueUse an immediate cut rather than a transition.
Returns
true when the current lease accepted the fixed camera; false otherwise.
Ownership and lifecycle
Only one resource can own the global script camera. San Andreas Online rejects stale callbacks and releases ownership on stop, restart, disconnect, or an authoritative server camera RPC.
Where this comes from
SOURCECLuaCameraDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaCameraDefs.cpp INTRODUCED / EXTENDED8cf6cc3cbRead the commit and why the change was made RELATED CATEGORY HARNESS native-script-camera-test Category-level coverage · test-resources/native-script-camera-test
RELATED SA:O APIS
Read the system guide → Continue exploring
← Back to the SA:O Lua API · How Native script camera works →