Standalone Realism Useful resource
Here’s a fast useful resource I made for my racing server after seeing some pace restrict show assets that have been made utilizing DrawText in a loop. I wished to get a way more visually pleasing implementation whereas additionally making it extra performant.
I made the pace restrict signal photographs myself utilizing the Freeway Gothic font and the high-res signal layouts obtainable from the USDoT Federal Freeway Administration website right here: Standard Highway Signs – FHWA MUTCD (dot.gov)
They’re left deliberately over-sized (however not unique dimension because the format was big) so you’ll be able to enhance the scale of the on-screen indicators with out dropping high quality if you want.
GITHUB REPOSITORY: youngsinatra99/919-speedlimits: An NUI FiveM resource to display speed limit signs on screen (github.com)
Credit score: chickenlord01 for speed limit table
USAGE:
Shopper Occasion: 919-speedlimit:shopper:ToggleSpeedLimit
Arguments: None
Set off this shopper occasion to toggle the pace restrict show on or off. It’s going to solely present whereas in a car.
TriggerEvent('919-speedlimit:shopper:ToggleSpeedLimit')
FAQ:
-
Q: How do I modify the scale of the pace restrict signal on display?
A: Within the file “html/index.html”, change the “max-width” worth to your required worth. Default: 100px. A dimension of half the default would look as follows:
#speedlimit > img {
max-width: 50px;
}
-
Q: How do I modify the place of the pace restrict signal on display?
A: Within the file “html/index.html”, change the “proper” and “backside” values to match your required place. For instance, a place above the minimap on the left would look as follows:
#speedlimit {
show:none;
place:absolute;
left:2vw;
backside:15vh;
}
CHECK OUT MY OTHER STUFF!