Jump to content

Help in getPed Skin :(


^Dev-PoinT^

Recommended Posts

what about This ?

local screenWidth, screenHeight = guiGetScreenSize() 
  
function skin ( ) 
    local skin = getPedSkin(localPlayer) 
    dxDrawText( "Your Skin: "..tostring(skin), 50, screenHeight-52, screenWidth, screenHeight, tocolor ( 255, 255, 0, 255 ), 1, "default-bold" ) 
end 
addEventHandler("onClientRender",root, skin) 

Link to comment

SoldSnake i alredy NameThem see

SkinDescriptions = {"Farmer Jenkins","Street Racer","","","","","","","News Lady","Old Grandmother","Barmaid", 
"Model","Gangsta Biatch","Old Man","Truck Man","Road Worker","IT Man","BeachGuard","Gangsta","Ladies Man", 
"Rapper","Hip Hop Dancer","Skater","Gangsta","Ladies Man","Tourist","Builder","Drug Dealer", 
"Drug Dealer","Mexican Gangsta","Horse Breeder","Fisherman","Captain","Horseman","Fisherman", 
"Mailman","Mailman","Old Woman","Grandmother","Pretty Girl","Sportswoman", 
"Sportswoman","Taxi Driver","Salesman","Lifeguard","Ladies Man","Mexican Gangster","Taxi Driver", 
"Restaurant Owner","Engineer","Sportsman","Sportsman", 
"Gardener","Old Lady","Slut","Slut","Businessman","Gardener","Ladies man","Dork","Pilot","Prisoner", 
"Slut","Slut","Slut","Drug Dealer","Bus Driver","Priest","Florist", 
"Butcher","Police Officer","Truck Man","Truck Man","Truck Man","Slut","Businesswoman","Homeless", 
"Homeless","Homeless","Boxer","Boxer","Elvis","Elvis","Elvis", 
"Slut","Slut","Porn Star","Gardener","Old Lady","Slut","Dancer","Babe","Dancer","Golfer","Farmer", 
"Athlete","Lifeguard","Dork","Sportman","Motorcyclist","Drug Addict", 
"Bloods Gangsta","Blood Gangsta","Bloods Gangsta Leader","Crove Gangsta","Crove Gangsta","Crove Gangsta", 
"Mexican Gangsta","Mexican Gangsta","Mexican Gangsta", 
"Russian Mafioso","Russian Mafioso","Mayor","Crips Gangsta","Crips Gangsta","Crips Gangsta","Chinese Mafioso", 
"Chinese Mafioso","Chinese Mafioso","Chinese Mafioso", 
"Japanese Gangster","Japanese Gangster","Japanese Gangster","Italian Mafioso","Italian Mafioso", 
"Italian Mafioso","German Guy","Motorcyclist","Old Lady", 
"Farmer","Wild Child","Hippy","Truck Man","Homeless","Homeless","Taxi Driver","Homeless","Slut","Slut","Slut", 
"Businesswoman","Bus Driver","Taxi Driver", 
"Artist","Slut","Artist","Mayor","News Anchor","News Anchor","Secretary","Fat Slut","Slut","Project Manager", 
"Lifeguard","Pizza Boy","Hairdresser","Farmer","Farmer", 
"Farmer","Farmer","Farmer","Combine Head","Security Guard","Security Guard","Security Guard","Security Guard", 
"Seller","Butcher","Chinese Slut","Chinese Guy", 
"Casino Employees","Casino Employees","Street Racer","Street Racer","Street Racer","Hairdresser","Hairdresser", 
"Porn Star","Mercenary","Tattoo Maker","Drunkard", 
"Taxi Driver","Bus Driver","Thief","Ladys Man","Chinese businessman","Business Man","Simple Man","Actor", 
"Black Lady","Dumped Lady","Lady","Student","BodyGuard", 
"Gangsta Biatch","Old Woman","Old Lady","Farmer","Homewive","Homeless Farmer","Truck Driver Lady", 
"Truck Driver","Kung-Fu Man","Kung-Fu Man","Hamburger Lady", 
"Truck Driver","Black Woman","Black Woman","Pizza Man","Simple Boy","Staff Lady","Homeless Man", 
"Homeless Drunk Guy","Important Lady","Black Old Woman","Beatiful Lady", 
"Staff Man","Old Lady","Office Girl","Beach Party Man","Club Dancer","Beach Man","Club Man","China Woman", 
"China Lady","Student Girl","Business Man", 
"Business Man","China Man","Homeless Guy","Simple Grandmother","Gangsta Grandmother","Lady","Vehicle Driver", 
"Old Man","Simple Guy","Cute Woman","Prostitute", 
"Homeless Man","Gentelman","Disko man","Big Show","Prostitute","Prostitute","Big Woman","Cop Stripper", 
"Bikers Member","Bikers Member","Beaver Skin Trader", 
"Formal Man","Swimming Woman","Swimming Man","Taxi Driver","Bikers Boss","Plane Pilot","School Girl?", 
"Naked Lady","Golf Club Member","Golf Club Member", 
"Road Worker","Drunk Man","Drunk Fat Man","Loyal Woman","Clown","Police Officer","Police Officer", 
"Police Officer","Car Painter","Gangster","Gangster","Gangster", 
"Mafia Member","Mafia Member","Medic","Medic","Medic","Firefighter","Firefighter","Firefighter", 
"Police Officer","Police Officer","Police Officer","Police Officer", 
"Police Officer","Police Officer","Police Officer","Police Officer","Police Officer","Police Officer", 
"Normal Man","Punk","Ceasar","Tatoo Man","Blind Man","Business Man", 
"Pimp The Real","DJ","Cheating Woman","Stupid Boy","Real Gangster","The Boss","Soldier Ryan","Pimp G**", 
"Gangsta Biatch","Motor Mechanic","Computer Freak","Weird Man", 
"Beckham Fan","Car Painter","Tehnology Boy","Big Show","Ex-Captain"} 
  
function SelectSkin () 
    setElementInterior ( getLocalPlayer(), 0, 0,0,0 ) 
    setCameraMatrix( 3878.8999023438,-1610.0999755859,17.1, 3878.9900488281,-1607.4000244141,16.5) 
    skin = createPed ( StartSkin, 3878.9900488281,-1608.4000244141,16.3,180 ) 
    setPedAnimation( skin, "DANCING", SkinAnims[math.random(1,4)]) 
    fadeCamera( true, 5) 
    setTime(0,0) 
    SkinSelectMusic = playSound(SkinMusic,true) 
    bindKey("arrow_r","down",NextSkin) 
    bindKey("arrow_l","down",LastSkin) 
    bindKey("lshift","down",SpawnPlayer) 
    addEventHandler("onClientRender",getRootElement(),AnnounceSkinJob) 
    showCursor(true) 
end 

Link to comment

what about This?

function skin ( ) 
    local skin = getPedSkin (localPlayer) 
    if getElementType ( skin) == "Player" and getElementModel ( skin ) == Player then 
    dxDrawText( "Your Skin: "..tostring(skin), 50, screenHeight-52, screenWidth, screenHeight, tocolor ( 255, 255, 0, 255 ), 1, "default-bold" ) 
end 
addEventHandler("onClientRender",root, skin) 

Link to comment

wtf

wtf is you doing lol you check if the skin is player?

also don't use getPedSkin

use getElementModel

function skin () 
     local skin = getElementModel (localPlayer) 
     if skin then 
     dxDrawText( "Your Skin: "..tostring(skin), 50, screenHeight-52, screenWidth, screenHeight, tocolor ( 255, 255, 0, 255 ), 1, "default-bold" ) 
     end 
end 
addEventHandler("onClientRender",root, skin) 

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...