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 mods.

Script MF Dope Plant

ManyScala

Member
Joined
Oct 2, 2021
Messages
5
Reaction score
0
Points
96
Location
Brazil
I have a problem with this script, someone can help me? I want to limit for 5 plants to each player, because when someone plant so many weeds the script causes lag.
 

Sr.Zek

Silver Elite
Joined
Nov 18, 2021
Messages
28
Reaction score
10
Points
51
Location
spain
I have a problem with this script, someone can help me? I want to limit for 5 plants to each player, because when someone plant so many weeds the script causes lag.
generates an owner field with value varchar (60) in the sql of the plants, when adding a plant you must add the identifier (owner) of the user and in the function that you fire with the use of the item (seed) you will have to make a counter with the plants that exist in the sql in relation to the identifier of the player who wants to plant, if the answer is less than the maximum amount you want then it acts as normal, else it sends a notification that it cannot exceed the number of certain plants
I'm sorry for my English
 

jotao

Member
Joined
Aug 10, 2021
Messages
1
Reaction score
0
Points
96
Anyone know how to implement so you only plant in a zone? , at the moment you can plant everywhere and i want to make them restrited to one zone , iam struggling to implement that
 

Postew

Member
Joined
Dec 22, 2021
Messages
3
Reaction score
0
Points
41
Location
World
Thank you for sharing.

Looks pretty interesting.
I'm gonna try it.
 

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