{"hash":"0xC3E9E5D4F413B773","ns":"CAMERA","name":"_RESTART_GAMEPLAY_CAM_SHAKE_WITH_NAME","slug":"_RESTART_GAMEPLAY_CAM_SHAKE_WITH_NAME","official":false,"named":true,"luaName":"RestartGameplayCamShakeWithName","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"shakeName","type":"const char*"},{"name":"intensity","type":"float"}],"summary":"Starts or restarts a predefined gameplay camera shake by name and sets its intensity.","descriptions":[{"source":"alloc8or","format":"text","body":"Starts or restarts a predefined gameplay camera shake by name and sets its intensity.\nIf the named shake is already active, the existing shake instance is restarted and its intensity is updated; otherwise the shake is created from camBaseShakeMetadata.\nObserved script usage pairs this with _STOP_GAMEPLAY_CAM_SHAKING_WITH_NAME(\"REINFORCED_LASSO_STRUGGLE_SHAKE\", false). Confirmed shakeName values include DRUNK_SHAKE, REINFORCED_LASSO_STRUGGLE_SHAKE, and HAND_SHAKE."},{"source":"vorp","format":"text","body":"shakeName: REINFORCED_LASSO_STRUGGLE_SHAKE\n_RES*"}],"examples":[],"aliases":["_SHAKE_GAMEPLAY_CAM_WITH_NAME"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CAMERA/_RESTART_GAMEPLAY_CAM_SHAKE_WITH_NAME","markdownUrl":"https://natives.borderlinerp.com/natives/CAMERA/_RESTART_GAMEPLAY_CAM_SHAKE_WITH_NAME.md","snippets":{"lua":"RestartGameplayCamShakeWithName(shakeName, intensity)","luaInvoke":"Citizen.InvokeNative(0xC3E9E5D4F413B773, shakeName, intensity)","js":"RestartGameplayCamShakeWithName(shakeName, intensity);","jsInvoke":"Citizen.invokeNative('0xC3E9E5D4F413B773', shakeName, intensity + 0.0000001);","csharp":"Function.Call((Hash)0xC3E9E5D4F413B773, shakeName, intensity);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}