Skip to content

GENESEE5M/GENESEEItemDamage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DAMAGE ITEM SYSTEM

This system will give more realism to your server

Need to edit the file

qb-smallresources/client/seatbelt.lua

changing to

function EjectFromVehicle()
    local ped = PlayerPedId()
    local veh = GetVehiclePedIsIn(ped, false)
    local coords = GetOffsetFromEntityInWorldCoords(veh, 1.0, 0.0, 1.0)
    SetEntityCoords(ped, coords)
    Wait(1)
    SetPedToRagdoll(ped, 5511, 5511, 0, 0, 0, 0)
    SetEntityVelocity(ped, veloc.x * 4, veloc.y * 4, veloc.z * 4)
    local ejectspeed = math.ceil(GetEntitySpeed(ped) * 8)
    if (GetEntityHealth(ped) - ejectspeed) > 0 then
        SetEntityHealth(ped, (GetEntityHealth(ped) - ejectspeed))
    elseif GetEntityHealth(ped) ~= 0 then
        SetEntityHealth(ped, 0)
    end
    TriggerServerEvent('GENESEEItemDamage:Accident')
end

before entering the water

This is an image

now the item is defective, replaced to "PHONE DAMAGED"

This is an image This is an image

Now the item will be lost

This is an image This is an image

Now supported for car crash

After being thrown out of the car after an accident, you may end up breaking some items. This is an image This is an image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages