SET_CAM_COORD
Sets the position of the cam.
Hash
0xF9EE7D419EE49DE6Runtime name
SetCamCoordNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4D41783FB745E42ESignature
void SET_CAM_COORD(Cam cam, float posX, float posY, float posZ);Parameters
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
posX | float | — |
posY | float | — |
posZ | float | — |
Returns void
Description
Sets the position of the cam.
Usage
SetCamCoord(cam, posX, posY, posZ)
-- always works, by hash
Citizen.InvokeNative(0xF9EE7D419EE49DE6, cam, posX, posY, posZ)JavaScript and C#
SetCamCoord(cam, posX, posY, posZ);
// by hash
Citizen.invokeNative('0xF9EE7D419EE49DE6', cam, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001);Function.Call((Hash)0xF9EE7D419EE49DE6, cam, posX, posY, posZ);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.