Jump to content

Scripting skins


pcisoft

Recommended Posts

Unfortunately, yes. I use like that scripts for inspect (coding style etc..) but everyone isn't downloading for it.Like this guy, he just want to use this script, not learn Lua as you said. Seems i didn't read correct. My bad sorry..

Edited by Guest
Link to comment
Unfortunately, yes. I use like that scripts for inspect (coding style etc..) but everyone isn't downloading for it. Like this guy, he just want to use this script, not learn Lua as you said.
Hey,

I want to script personal skins and group skins and car shaders

can you help me ?

Thanks!

Shaders deal with HLSL afaik, i personally have no knowledge of HLSL, but you can edit skins in 3ds max and textures in PS.

Link to comment

If I'm not wrong, he just wants to add himself a personal skin.

Yes I want add personal skins

I copied from some OLD Scripts that's not me the author of them

function replaceskin() 
        local accname = getAccountName(getPlayerAccount(client)) 
        if (accname=="pcisoft") then 
    txd = engineLoadTXD ( "cwmyhb1.txd" ) 
    engineImportTXD ( txd, 162) 
    dff = engineLoadDFF ( "cwmyhb1.dff", 162) 
    engineReplaceModel ( dff, 162) 
    end 
     
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceskin) 

I added local and if

but that haven't worked

I want create scripts to replace skin per groups or accounts

Thanks!

Edited by Guest
Link to comment

Well, complet server side,

addEvent("isAccount",true) 
addEventHandler("isAccount", root, 
function () 
    local txd = engineLoadTXD ( "cwmyhb1.txd" ) 
    engineImportTXD ( txd, 162) 
    local dff = engineLoadDFF ( "cwmyhb1.dff", 162) 
    engineReplaceModel ( dff, 162) 
end)  

--Server side:

addCommandHandler("setSkin", function(player) 
   --Your code 
    triggerClientEvent(player,"isAccount",player) 
end)   
  

Link to comment
Well, complet server side,
addEvent("isAccount",true) 
addEventHandler("isAccount", root, 
function () 
    local txd = engineLoadTXD ( "cwmyhb1.txd" ) 
    engineImportTXD ( txd, 162) 
    local dff = engineLoadDFF ( "cwmyhb1.dff", 162) 
    engineReplaceModel ( dff, 162) 
end)  

--Server side:

addCommandHandler("setSkin", function(player) 
   --Your code 
    triggerClientEvent(player,"isAccount",player) 
end)   
  

o_O

Can you explain this for me please

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