Upon entering any vehicle, the player is forced into first person directly.
If the player is teleported into any vehicle, he will also be forced into first person.
When the player exits a vehicle, the camera gets reset to whatever he used before sitting in the vehicle. (e.g. when in far away camera before entering the vehicle, you will be set into the far away camera after exiting the vehicle again)
It includes a blacklist for vehicle models and complete vehicle classes. (players in these vehicles will not be forced into first person)
Full source code included.
Script can be restarted any time.
Uses the Asset Escrow System (no obfuscation yet, everything is editable).
Planned Features
Permission based whitelist for players (so they are not forced into first person).
Performance
Client Side: 0.02ms
Server Side: -
Known Issues
Submersibles switch to third person when directly on the water surface (first person under and
above water still works).
Driving any vehicle deep enough into water (apart from submersibles) will switch to third person.
Installation instructions
Extract the downloaded folder into your resources.
As this got listed again, I decided to clarify a few things first:
Upon entering any vehicle, the player is forced into first person directly.
If the player is teleported into any vehicle, he will also be forced into first person.
When the player exits a vehicle, the camera gets reset to whatever he used before sitting in the vehicle. (e.g. when in far away camera before entering the vehicle, you will be set into the far away camera after exiting the vehicle again)
It includes a blacklist for vehicle models and complete vehicle classes. (players in these vehicles will not be forced into first person)
One thing that is not quite ready yet is a permission based whitelist for players, so they are not forced into first person.
@seawolph
First Person screenshot from the back of a motorcycle (hakuchou in this case):
One thing I did not mention is another release coming up for free for everyone:
A resource that allows you to actually look back through the side windows when in first person (similar to Euro Truck Simulator or Spintires/Mud-/Snowrunner). It is in active development and hopefully drops this week.
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsPedInAnyVehicle(PlayerPedId(), false) then
SetFollowPedCamViewMode(4)
DisableControlAction(0, 0, true)
end
end
end)
You do realize that this will not work for e.g. bikes and boats?
Where is the reset back to the cam from before entering the vehicle?
Where is the blacklist for vehicles?
If you don’t need those features, then you are probably good to go with that script. I just have taken the opportunity to create something that has not been released in this form yet.
If you want to create your own resource, go ahead. I will not stop you.
Sadly you cannot change the fov of the default first person camera (apart from the pitiful slider in the options).
But that is definitely something I will look into. Haven’t even thought of that… But since I am trying to create a “look back” camera anyways, I can do that too