qalle
May 19, 2019, 1:06pm
1
rdrp_rccars
What is this?
This is a rc-script.
You use /rc ingame.
Features
You will now be able to drive your own RCCar.
You steer it with UP, DOWN, LEFT, RIGHT -> Arrows.
It’s synced everyone will see your tablet and rccar.
Download & Installation
Using Git
cd resources
git clone https://github.com/qalle-git/rdrp_rccars
Manually
Installation
Add this to your server.cfg
:
start rdrp_rccars
Video of the resource
Video of the resource v1.1
Feel free to give feedback.
26 Likes
Amazing release ! Keep it UP!
1 Like
Kato
May 19, 2019, 1:43pm
3
if you dont mind answer whats that resource called ? the Press [E] to pick up
qalle
May 19, 2019, 1:48pm
4
??
It’s this resource or what do you mean?
Kato
May 19, 2019, 1:50pm
5
I have seen in several servers that option for Picking item and enter building
qalle
May 19, 2019, 1:51pm
6
Well it’s not a resource it’s a 3DText and the function is in this resource.
Could you tell me how to do this, the player had to have RC in the inventory?
local rcrc = xPlayer.getInventoryItem('rc').count
if rcrc > 0 then
Is this a good?
qalle
May 20, 2019, 8:23am
10
If you’re using ESX and would like to use an item.
Create a server
file.
local ESX = nil
TriggerEvent('esx:getSharedObject', function(obj)
ESX = obj
end)
ESX.RegisterUsableItem('rccar', function(source)
TriggerClientEvent('rdrp_rccars:rcCar', source)
end)
Add this into that file.
Add the item rccar
.
Add this client
event.
RegisterNetEvent('rdrp_rccars:rcCar')
AddEventHandler('rdrp_rccars:rcCar', function()
RCCar.Start()
end
2 Likes
Just a heads up, not really important but running /rc twice will leave behind an RC Car you can’t pick up, and shooting near the left behind RC Car will force it to drive away on it’s own like a panic’d NPC, gotta admit it was hilarious.
qalle
May 20, 2019, 10:32am
13
Oh shit, i thought i added a check. Lemme fix that.
DTPL
May 20, 2019, 10:38am
14
Awesome script!
Im planning add ability to modify vehicle and maybe select from more vehicles…
Also, i think that there is a drone added in last update, it would be so awesome to implement it, but i think its not made as a car, but just as a prop
qalle
May 20, 2019, 10:41am
15
Ye there loads of modifications on that rc-car, you could make it able to drive it to an vehicle thingy where you can modify it
DTPL
May 20, 2019, 10:43am
16
hmm, then it would also need saving modified vehicles to db…
which line we must add ?
RegisterNetEvent('rdrp_rccars:rcCar') AddEventHandler('rdrp_rccars:rcCar', function() RCCar.Start() end
99kr
May 21, 2019, 11:13am
19
he told u? but u need a ) on the end where u register the event
1 Like
Perfect, does anyone know how to put the camera on the car?