Jump to content

Hello i need Functions


Jey

Recommended Posts

Posted (edited)

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

13670798064f7f5568f4125.gif13670798064f7f5568f4125.gif

Skype:memo.prince78

  • Moderators
Posted

When somebody mention shaders you can better forget it. Far from your understanding and also mine.

This are shaders:

https://wiki.multitheftauto.com/wiki/Shader_examples

To edit everything related to directX.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

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

Posted

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.

-

Posted

Yeah, I actually forgot about this function

engineApplyShaderToWorldTexture 

This function has an argument where you can apply a shader to a specific element.

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