Welcome to the forum, Guest

To access forum content and all of our services, you must register or log in to the forum. Joining the forum and all content on the forum is completely free.

The world's largest FiveM Forum and GTA 5 Forum address

Hello dear member,
We work 24/7 to provide the most valuable content that will be of use to you,
you can share content and support the entire FiveM & GTA 5 community.

Request Weed system

Yvan XD

VIP
Joined
Oct 1, 2021
Messages
240
Reaction score
81
Points
126
Location
Munich
i have it but i have also a problem that police cant destroy the plant evrything else works fine?

it's weird, I'm getting there, do you have the name police in your database?

function MFD:SyncPlant(plant,delete)
local xPlayer = ESX.GetPlayerFromId(source)
while not xPlayer do Citizen.Wait(0); ESX.GetPlayerFromId(source); end
local identifier = xPlayer.getIdentifier()
plant["Owner"] = identifier
if delete then
if xPlayer.job.label ~= self.PoliceJobLabel then
self:RewardPlayer(source, plant)
end
end
self:plantCheck(identifier,plant,delete)
TriggerClientEvent('MF_DopePlant:SyncPlant',-1,plant,delete)
end
 

Nupppp

Bronze Elite
Joined
Sep 25, 2021
Messages
32
Reaction score
5
Points
66
Location
Some were you don`t know
yes for example modfreakz dope plants ...


View attachment 3071
the thing is with dopeplant you need to plant stuff yourself, i`m looking for a script where in the config is set a specific place were "weed" or anything else will spawn with a prop in a random area, i need something like that for a small setup so i can work further with that
 

anes66

Bronze Elite
Joined
May 12, 2021
Messages
26
Reaction score
3
Points
96
it's weird, I'm getting there, do you have the name police in your database?
yeah its there but the problem is my complete job system items and evrything else is in config on es_extended :D
 

Login or register to get more out of the forum!

Login or register to get more out of the forum!

Register

Creating an account on the forum is completely free.

Register now
Log in

If you have an account, please login

Log in

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds