Hello ! Today I’m releasing mth-rc, a resource created with @Dark-Animations and @TayMcKenzieNZ . This resource is a standalone resource that allows you to spawn a rc car and control it with your keyboard. See the showcase video below to see how it works !
Usage :
To use the resource, download it, put the mth-rc folder in your main resources folder.
Add start mth-rc to your server.cfg
Then, once you’re in game, use the command /rc to get started !
Features :
STANDALONE : this means that you don’t need any dependencies to start this script on your server
This is great!!! And oh i got a request! The ability to have an rc-car item that you can use, and then basicly triggering the script (Or something, i have no coding knowledge at all!), so players could buy the rc-car as an item in stores!
Very good work, I would like an item to be needed to be able to use it.
One serious suggestion, if possible, make it “invisible”, like non-contact racing. Since, there would be too many cases in which they would use the bandit to crash into people and get life out of them
Seems like a very nice resources, the only thing I would note is network compatibility
This seems to be working great in a simple environment, but could be broken by network control / onesync big max range
Network control:
In a case where multi players are around the RC, an other player could inherit the control of the entity, breaking the control of the car
There is no real fix of the other than verifying if “we” still have the control of the RC, and requesting the control again, this will not work if RequestControlFilter is enabled (sv_filterRequestControl)
Creating objects and vehicle client-side:
Currently, creating objects & vehicles client side will work best for singleplayer use or non-onesync, but would cause security issues for server that have a lot of players to manage, either they do a whitelist for entities they allow (they just need to add models spawned from your script, but this is a shitty way to do it) or they don’t allow client to create entities at all
The problem with creating entities server side is : it doesn’t work in non-onesync mode
Onesync big max range :
Onesync big mode (infinity) is the 1024 version of onesync that use a maximum range to sync entities, you will not see network entities from the north of the map when you are in Los Santos
If the RC escape the max range, it will be lost
There is no simple way of fixing this other than teleporting the player near the RC when it’s very far away, but this occurence is kinda rare and the RC would need to go kinda far before it happens
These are simply notes and doesn’t mean you need to fix anything in your script
It’s great to see community members sharing free script and trying to adapt them for the need of others
Thank for the share
Very interesting, thanks for ‘teaching’ this kind of stuff that’s not really explained anywhere but is still very important when working with more complex scripts.
Especially when working with network control
The idea for this script came from 2 things really; it may already exist but it’s paid or poorly done, and the 2nd point being, can we do it but better, and for free?
Every other script I’ve seen either uses the tablet animation and prop, or the phone animation and prop; I decided, why not be unique and use the controller, and had Darks Animations make us the custom animation, which he surprisingly whipped up, tested, and sent us in about 45 minutes.
I guess you could disable the range thing and use the script to race them together, but the script was mostly designed to scope out buildings or whatever undetected, like, you could use mth-views from a vantage point for binoculars and use night vision or thermal vision, or you can send in the RC car with this script and get a view from ground level, except that you can only be soo far from your player before you lose signal, giving you some form of difficulty.