Jump to content

Some questions


FuriouZ

Recommended Posts

Hello, i have some questions

1)

Why player skin going to be set to CJ if player spawns ?

How to remove it, i don't want random skin, i think, it is something with getPedSkin but i cant figure it out

spawnPlayer(source, -6.14358, 6.11255, 3.11719) 

2)

How to disable kill sound,if player gets dead?

killPed(source, source) 

3)

How to mute all sounds including wordld sounds (water waves, wind..)

4)

Bad argument @getElementHealth -Line 66

attempt to preform aritmethic on local 'hp' (a boolean value) -Line 67

local gMe = getLocalPlayer() 
local sX,sY = guiGetScreenSize() 
local function drawVehicleHealth() 
    if isPedInVehicle(gMe) then 
        dxDrawRectangle(sX-141,689,130,20,tocolor(0,0,0,255)) 
        dxDrawRectangle(sX-140,690,128,18,tocolor(0,0,0,255)) 
        local hp = getElementHealth(getPedOccupiedVehicle(gMe)) --Line 66 
        dxDrawRectangle(sX-140,690,hp/7.81,18,tocolor(198,30,28,255)) --Line 67 
        dxDrawRectangle(sX-140,690,hp/7.81,9,tocolor(40,40,40,80)) 
    end 
end 
addEventHandler ("onClientRender", getRootElement(), drawVehicleHealth) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...