Coder Social home page Coder Social logo

framework's People

Contributors

mrgriefs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mrgriefs

framework's Issues

anti-vehicle shuffle sometimes causes animation spaz

In certain vehicles, no-shuffle will cause the player ped to be visibly entering and exiting the shuffle animation consistently on an arbitrary basis. Particularly prominent in aircraft.

framework/client.lua

Lines 44 to 59 in 74a785f

-- disable vehicle shuffle
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local ped = GetPlayerPed(-1)
if IsPedInAnyVehicle(ped, false) then
local vehicle = GetVehiclePedIsIn(ped, 0)
if GetPedInVehicleSeat(vehicle, 0) == ped then
if GetIsTaskActive(ped, 165) then
SetPedIntoVehicle(ped, vehicle, 0)
SetVehicleCloseDoorDeferedAction(vehicle, 0)
end
end
end
end
end)

Welcome message not appearing

The welcome message doesn't appear when a player joins the server.

framework/client.lua

Lines 10 to 20 in 74a785f

-- a short welcome message when they join
if GetConvar('frameworkRestarted') ~= 'true' then
TriggerEvent('chat:addMessage', {
color = true,
args = {
Constants.SystemPrefix,
'Welcome ' .. GetPlayerName(PlayerId()) ..
'^0^r^*! Please make sure you\'re in the ^3^_/discord^0^r^* server to get started or for help.'
},
})
end

Sticky wheels native error

Sticky wheels throws a native error. Stack trace TBA.

framework/client.lua

Lines 262 to 285 in 2a93df9

-- sticky wheels (keeps them in same position)
Citizen.CreateThread(function()
local vehicle
local angle
while true do
Citizen.Wait(1)
local ped = PlayerPedId()
if IsPedInAnyVehicle(ped) then
vehicle = GetVehiclePedIsIn(ped)
local current = GetVehicleSteeringAngle(vehicle)
if current > 20 then
angle = 40
elseif current < -20 then
angle = -40
elseif current > 5 or current < -5 then
angle = current
end
end
if vehicle and DoesEntityExist(vehicle) and (IsPedOnFoot(ped) or IsPedStopped(ped)) then
SetVehicleSteeringAngle(angle)
end
end
end)

Shootable players in vehicle doesn't work

Players still cannot shoot each other whilst in a vehicle.

framework/client.lua

Lines 224 to 240 in 0a5dc4a

-- set players in vehicle shootable
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
local ped = PlayerPedId()
if IsPedInAnyVehicle(ped) then
local veh = GetVehiclePedIsIn(ped)
local seats = GetVehicleModelNumberOfSeats(veh)
for i = 1, seats do
local vehPed = GetPedInVehicleSeat(veh, i - 2)
if vehPed ~= 0 then
SetPedCanBeShotInVehicle(vehPed, true)
end
end
end
end
end)

Realistic ammo

Players should have a limited amount of ammo, clips, on their person.

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.