FuriouZ Posted December 29, 2013 Share Posted December 29, 2013 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
Castillo Posted December 29, 2013 Share Posted December 29, 2013 1: Skin ID is 0 by default. 2: What do you mean by "kill sound"? 3: I'm not sure if you can mute these sounds. 4: I guess getPedOccupiedVehicle is returning a boolean instead of a vehicle. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now