karlis Posted March 3, 2012 Posted March 3, 2012 the PreRender probably wouldnt even work, as its called before anything is drawn, and HUD render is just the same, but draws under the hud. Frequency for all of them is the same - once a frame. So it wont be better. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
Moderators IIYAMA Posted March 3, 2012 Author Moderators Posted March 3, 2012 Make lots of triggers instead of onclientrender? Like: onPlayerSpawn(all), onPlayerWasted(all), reloadgun(ammo/weapon_img), onPedDamage/onPlayerDamage(armor/health), onPlayerWeaponSwitch (ammo/weapon_img), onClientPlayerWeaponFire(ammo/weapon_img) (I don't know if they are all true... it is just a sample of it) Would that be better against lagg or does it make more lagg? and what about the names between >() sample: onPlayerWeaponSwitch > (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
karlis Posted March 3, 2012 Posted March 3, 2012 just hide the hud once resource/map starts, will do the work. if you need to draw new hud, onClientRender is only option. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
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