MAB Posted October 26, 2015 Share Posted October 26, 2015 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
KariiiM Posted October 26, 2015 Share Posted October 26, 2015 Bad usage of functions it may drop the player's CPU Link to comment
MAB Posted October 26, 2015 Author Share Posted October 26, 2015 Bad usage of functions it may drop the player's CPU Like? Link to comment
KariiiM Posted October 26, 2015 Share Posted October 26, 2015 Trigger function for example Link to comment
MAB Posted October 26, 2015 Author Share Posted October 26, 2015 Trigger function for example What about Timers and getElementData / setElementData ? Link to comment
KariiiM Posted October 26, 2015 Share Posted October 26, 2015 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... Link to comment
MAB Posted October 26, 2015 Author Share Posted October 26, 2015 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
KariiiM Posted October 26, 2015 Share Posted October 26, 2015 https://forum.multitheftauto.com/viewtopic.php?f=91&t=93379 Link to comment
MAB Posted October 27, 2015 Author Share Posted October 27, 2015 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
Dealman Posted October 27, 2015 Share Posted October 27, 2015 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... 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