LockCameraPos
Lock the gameplay camera position. Useful to make features such as Freecam, spectate, ...
Syntax
Susano.LockCameraPos(state) -> void
Parameters
state (boolean): Self explainatory
Return(s)
None
Behavior
Call with (true) to lock the gameplay camera position.
Call with (false) to unlock it.
Example(s)
-- Change gameplay cam position
Susano.LockCameraPos(true)
local currentPos = GetEntityCoords(PlayerPedId(), true)
Susano.SetCameraPos(currentPos.x + 15.0, currentPos.y, currentPos.z + 15.0)