Advertisement
leoSHEIK

first person camera fivem

Mar 13th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. -- active first person camera and third in vehicles
  2. local forceFirstPerson = true
  3. -- CODE --
  4. Citizen.CreateThread(function()
  5.     SetBlackout(false)
  6.  
  7.     while true do
  8.         Wait(1)
  9.         local currentView = GetFollowPedCamViewMode()
  10.         if forceFirstPerson then
  11.             if currentView ~= 4 then
  12.                 SetFollowPedCamViewMode(4)
  13.                 Citizen.Trace(GetFollowPedCamViewMode())
  14.             end
  15.             if IsPedInAnyVehicle(GetPlayerPed(-1), true) then
  16.                 SetFollowPedCamViewMode(0)
  17.                 Citizen.Trace(GetFollowPedCamViewMode())
  18.             end
  19.         end
  20.     end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement