Giter Site home page Giter Site logo

Comments (6)

0ddShot1 avatar 0ddShot1 commented on July 2, 2024 1

Having the same issue, This is the only script I found to work on bikes.

from forced-first-person.

vipexv avatar vipexv commented on July 2, 2024

Not sure why this would be happening, it wasn't happening before and i haven't touched the code at all except when i added the Bike feature, and even then it was working, i will check this issue out soon, currently busy with another project, but i'll see if i can identify the issue.

from forced-first-person.

Arcticguy867 avatar Arcticguy867 commented on July 2, 2024

local ped = PlayerPedId()
local inVeh = IsPedInAnyVehicle(ped, true)

if Config.Options.ForcedFirst then
CreateThread(function()
while true do
sleep = 1000
local _, weapon = GetCurrentPedWeapon(PlayerPedId())
local unarmed = WEAPON_UNARMED
if weapon == unarmed then
sleep = 1000
else
sleep = 1
if IsPlayerFreeAiming(PlayerId()) then
SetFollowPedCamViewMode(4)
else
SetFollowPedCamViewMode(0)
end
end
Wait(sleep)
end
end)
end

if Config.Options.Vehicle then
CreateThread(function()
while true do
sleep = 1000
local ped = PlayerPedId()
local bike = IsPedOnAnyBike(ped)
local _, weapon = GetCurrentPedWeapon(PlayerPedId())
local unarmed = WEAPON_UNARMED
if IsPedInAnyVehicle(ped) and weapon ~= unarmed then
sleep = 1
if IsPedDoingDriveby(ped) then
SetFollowVehicleCamViewMode(4)
else
SetFollowVehicleCamViewMode(0)
end
else
sleep = 1000
end
Wait(sleep)
end
end)
end

if Config.Options.Bike then
CreateThread(function()
while true do
sleep = 1000
local _, weapon = GetCurrentPedWeapon(PlayerPedId())
local unarmed = WEAPON_UNARMED
if IsPedOnAnyBike(PlayerPedId()) and weapon ~= unarmed then
sleep = 1
if IsControlJustPressed(0, 25) then
SetCamViewModeForContext(2, 4)
elseif IsControlJustReleased(0, 25) then
SetCamViewModeForContext(2, 0)
end
else
sleep = 1000
end
Wait(sleep)
end
end)
end

if Config.EnteringVehicle then
CreateThread(function()
if Config.EnteringVehicle then
while true do
sleep = 1000
if IsPedInAnyVehicle(PlayerPedId()) then
SetFollowPedCamViewMode(4)
else
SetFollowPedCamViewMode(0)
if GetPedInVehicleSeat(inVeh, -1) then
SetFollowVehicleCamViewMode(4)
end
end
Wait(sleep)
end
end
end)
end

Here use this replace the main with this

from forced-first-person.

Arcticguy867 avatar Arcticguy867 commented on July 2, 2024

Having the same issue, This is the only script I found to work on bikes.

solution ^^^

from forced-first-person.

vipexv avatar vipexv commented on July 2, 2024

How would this fix it tho, what even was the issue in the first place?

from forced-first-person.

vipexv avatar vipexv commented on July 2, 2024

Should be fixed.

from forced-first-person.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.