I wrote a script for myself in C # a long time ago, decided to rewrite it in lua and download it. I also made a HUD for it. The simple configuration and the ammunition strip decreases depending on the amount of ammunition and changes color to red if the amount clip is less than 30%.
exemple cfg:
{ hash = GetHashKey("WEAPON_UNARMED"), recoil = 0, effectName = "SMALL_EXPLOSION_SHAKE", effectRage = 0, damage = 0.3 },
{ hash = GetHashKey("WEAPON_PISTOL"), recoil = .9, effectName = "SMALL_EXPLOSION_SHAKE", effectRage = .025, damage = 1.0 },
- Config:
hide AIM (off/on)
First person shooting (off/on)
weapon HUD (off/on)
Realistic recoil (editable for a specific one in a convenient config)
Damage changes (editable for a specific one in a convenient config)
Camera effect on shooting (editable for a specific one in a convenient config)
Strength of the camera effect on shooting (editable for a specific one in a convenient config)
tebex
demo: https://www.youtube.com/watch?v=9SHrcFWl6gI
Resource Monitor - demo 2: weapon config - demo 2 (ResMon) - YouTube
6 Likes
This is EXACTLY what I was looking for, thank you!
There should be some way to re-escale based on resolution
because at lower resolutions it looks way to big
Also, Im trying to move the box but this seems not to take any changes no matter if is px or %
I need to put it on the right bottom
I always got stucked at Awaiting Scripts
you need to disable the loading screen when the player has loaded.
when the player hasalready loaded and spawn, you need to use that. This does not apply to this resource
ShutdownLoadingScreen()
ShutdownLoadingScreenNui()
vakdev
May 10, 2021, 10:39pm
11
added this to a client.lua then tested in the loadscreen but just makes me spawn as micheal
well, there are no unnecessary scripts like spawn or set skins.
I strongly doubt that this is somehow involved in everything, I tested it on my server, there were no such problems, try the script to load first or last.
vakdev
May 10, 2021, 11:04pm
13
i tried putting it starting at the end and still having issues with this
in your fxmanifest.lua copy and paste this
fx_version 'bodacious'
game 'gta5'
author 'Lucky'
version 'v1.0'
--resource_type 'gametype' { name = 'wpCfg' }
ui_page('html/index.html')
client_scripts {
'client.lua'
}
files({
'html/*',
'html/img/*'
})
1 Like
Also you’re aware FiveM’s TOS with paid scripts requires no obfuscated code, just FYI. Good script all around
Also, what would case the images to not work? Havent been able to get the images to display within the HUD
weapon is not displayed?
Take a screenshot pls
In a second let me load up