^Dev-PoinT^ Posted November 8, 2011 Share Posted November 8, 2011 i made this and put it onClientSide its say 2 erros 1- expect to close at end 2- replce it with getElementMode? function XXX () outputChatBox( "You have successfully choosed"..getPedSkin (getLocalPlayer() end) addEventHandler ( "onPlayerSpawn", getRootElement(), XXX ) Link to comment
Castillo Posted November 9, 2011 Share Posted November 9, 2011 function XXX () outputChatBox( "You have successfully choosed".. tostring(getElementModel(source)), source) end addEventHandler ( "onPlayerSpawn", getRootElement(), XXX ) Put it as server side. Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 what sex you talking about in my all script i dot xxx for fast finsh it i dont renam it or something i just wirte it to XXX ZZZ QLM any Thing Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 SoldSnake 14 it say You have successfully choosed (choosed 30 ...) i have skin 46 Name Lides Man i need it outputChatBox as the same Name of the skin not the id of it Link to comment
Castillo Posted November 9, 2011 Share Posted November 9, 2011 That code will output the SKIN model of the player that just spawned. Btw, skins doesn't has "NAMES". Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 i have a gamemode if you selecet a skin the Name is up for example if i select 188 skin the Name is SoldSnake14 i want he outputChatBox You Have select Skin [soldSnake14] Like This Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 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
Castillo Posted November 9, 2011 Share Posted November 9, 2011 Dev-Point, that would be the same, as I said, skin doesn't has names, you must name them with a script. Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 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
Castillo Posted November 9, 2011 Share Posted November 9, 2011 You got the names... but where are the ID's? how are you going to get the name of the ID? Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 i have it but i dont want to show the full code here Link to comment
Castillo Posted November 9, 2011 Share Posted November 9, 2011 That table doesn't has any skin model, my suggestion is to make the table like this: SkinDescriptions = {[0] = "Carl Johnson", [46] = "Dark Romeo"} That way you can get the name really easy. Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 its Hard Never Mind let use Back To The dxdrawText its work but when i Join its show Your Skin 280 and My Skin is 46 when i spawn its say Your Skin is 46 what is wrong with it? Link to comment
Castillo Posted November 9, 2011 Share Posted November 9, 2011 Maybe is getting the old skin? try setting a timer. Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 dosnt work To Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 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
TAPL Posted November 9, 2011 Share Posted November 9, 2011 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
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 Thx All Solved By other way Link to comment
TAPL Posted November 9, 2011 Share Posted November 9, 2011 how you Solved it? we want know ^^ Link to comment
^Dev-PoinT^ Posted November 9, 2011 Author Share Posted November 9, 2011 lol i have a gamemode it has alredy the codes i take it form it Link to comment
TAPL Posted November 9, 2011 Share Posted November 9, 2011 oh, what the gamemode name? maybe i will need the code in future Link to comment
HoLsTeN Posted November 9, 2011 Share Posted November 9, 2011 if you fixd your code you must show as how you fix it ... Link to comment
Otto Posted November 9, 2011 Share Posted November 9, 2011 what sex you talking about in my all script i dot xxx for fast finsh it i dont renam it or something i just wirte it to XXXZZZ QLM any Thing XXX = Sex/Porn that's why I related it. Link to comment
Aibo Posted November 9, 2011 Share Posted November 9, 2011 i weep at the degradation of the scripting section. 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