Jump to content

Hello i need Functions


Jey

Recommended Posts

Hello Guys

Today i see in CIT2 Server

a group have a edited skin

and the orginal skin is working too

mean:

the edited skin he replace with it

working

and the

Orginal is working too

idk how

that mean i have edited skin like 230

i replaced it with the original

in CIT2 they have the orignial and the edited

How ?

Thanks

Sorry For my bad English <3

Edited by Guest
Link to comment

It's because in that resource the script is running for a specific player. For example,

  
local function j (o) 
 if o and getPlayerName(o) == "Jey" then 
return  "Hey, Jey!" 
else 
return "You are not Jey" 
end  
       end 
local txt = j(localPlayer) 
outputChatBox(txt)  --> this will run on every client PC but it will output "Hey, Jey" for player whose name is Jey. 
  

so basically that model is loaded for specific players and shaders? 0.0

Link to comment

Shader is a program for graphics processing, typically executed by graphics card. In MTA, shaders can be applied to specific elements. Which means different elements with the same model IDs may look different. Shaders make it possible to change the texture or reposition the vertices but I'm not sure about geometry shaders, the ones that generate new primitives, which is needed for full flexibility of this kind of model replacement.

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