Jump to content

CPU and some questions


MAB

Recommended Posts

What to do for the best CPU ? What functions i should avoid and what to replace it with?

How to make a custom name tag? like the green one in DayZ servers?

How to remove the color hex code from a player name?

How to remove all the traffic and light pillars from GTA SA map forever?

How to make a color picker?

Link to comment
Trigger function for example

What about Timers and getElementData / setElementData ?

Timer too in case you did it like that

for example:

setTimer ( functionName, 1000, 0) 

It will restart the function for each one second...

Yea :( , what about the set and get ElementData

Link to comment

You'll be able to use triggers and timers just fine, whether client-side and server-side. So long as you use it wisely.

The biggest performance impact will be with rendering stuff. Don't do calculation heavy stuff within onClientRender for example.

How to make a custom name tag? like the green one in DayZ servers?

How to remove the color hex code from a player name?

How to remove all the traffic and light pillars from GTA SA map forever?

How to make a color picker?

1. You can use setPlayerNametagText.

2. You'll need to use string.gsub to remove it. You can use it like this;

getPlayerName(playerElement):gsub("#%x%x%x%x%x%x", "") 
string.gsub(getPlayerName(playerElement), "#%x%x%x%x%x%x", "") 

3. Use removeWorldModel to remove world models.

4. The GUI Editor has a colorpicker embedded with it. I believe it's also uploaded to the MTA Community.

All of this you could have found by searching these forums... :roll:

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