DiscordVehiclesRestrict

sadasdsda

@OfficialBadger Is it possible to restrict whole categories as opposed to just vehicles

Just vehicles

Do you ever plan to add a feature to add whole categories?

Honestly, probably not

Feels bad

What if i have multiple roles? Wich one does count then?

Don’t understand your question

Say Role A has restricted the dinghy and role B does not and i have both roles in discord. Wich one applies?

No no no. This works based off of a whitelist. If Role A has the dinghy then they are allowed to drive it, but everyone else can’t. If Role B has the dinghy then only they are allowed to drive it. Understand?

Aah I got confused by the “Restrict” part

It works. But the problem is that you need to relog before you can use the car.

No, just have to spawn in

@OfficialBadger I had many problems with this script, I don’t know why it doesn’t work now…

First it was identifierDiscord == nil, later it became a whole list in print(see below). But still i can’t spawn a car that i put in the list. Any ideas?

roles[i] 643252548769153026 equal to roleList[j] table: 0x5555588f9a40 ?
roles[i] 643252548769153026 equal to roleList[j] table: 0x555563484b20 ?
roles[i] 643252548769153026 equal to roleList[j] table: 0x555561f3e8e0 ?
roles[i] 643252548769153026 equal to roleList[j] table: 0x555563755500 ?
roles[i] 643252548769153026 equal to roleList[j] table: 0x55556236ada0 ?
roles[i] 643252548769153026 equal to roleList[j] table: 0x555562ff05e0 ?
roles[i] 643252548769153026 equal to roleList[j] table: 0x5555631c57a0 ?
roles[i] 643252548769153026 equal to roleList[j] table: 0x555563450560 ?
roles[i] 643252548769153026 equal to roleList[j] table: 0x5555631c56e0 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x5555588f9a40 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x555563484b20 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x555561f3e8e0 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x555563755500 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x55556236ada0 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x555562ff05e0 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x5555631c57a0 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x555563450560 ?
roles[i] 643423815912652811 equal to roleList[j] table: 0x5555631c56e0 ?
roles[i] 643427457281818634 equal to roleList[j] table: 0x5555588f9a40 ?
roles[i] 643427457281818634 equal to roleList[j] table: 0x555563484b20 ?
roles[i] 643427457281818634 equal to roleList[j] table: 0x555561f3e8e0 ?

What does your roleList look like? Your values for discord IDs look completely wrong…

roleList = {
643422270769070091, -- Blacklist

643466846946852889, -- Ambulance
643467035564572674, -- ANWB
643467764387938325, -- Brandweer
643464505476644895, -- Politie

643539282522538001, -- Agent
643539318018932749, -- Elite
643539346577817650, -- True Believer
643539370590208012, -- Extreme Member
643539393339981824, -- Sponsor

643914714392428604, -- Support

653375159473799169 -- Staff
}

@OfficialBadger hellof officialbadger i have a question i was changing this script to my cars etc but i want mechanic with police and ems but if mechanis goes in ems or police it despawn so mechanice can only be in there own cars how can i fix this

Code it to fit your needs

What do you mean?

I did place the car in the same roles but i doesn’t work @OfficialBadger