added new scripts and eup

This commit is contained in:
KingMcDonalds
2025-05-19 16:45:39 -07:00
parent 92357c972e
commit 5fa9cc69be
292 changed files with 10254 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
-- Author : Morow
-- Github : https://github.com/Morow73
if Config.USE_ESX then
ESX = nil
TriggerEvent('esx:getSharedObject', function( obj ) ESX = obj end)
end
RegisterNetEvent("mrw_minigolf:locateClub")
AddEventHandler("mrw_minigolf:locateClub", function()
local x_source = source
if Config.USE_ESX then
local xPlayer = ESX.GetPlayerFromId(x_source)
local getPlayerMoney = xPlayer.getMoney()
if getPlayerMoney >= Config.club_price then
TriggerClientEvent("mrw_minigolf:st_game", x_source, 1)
else
TriggerClientEvent("mrw_golf:Notification", x_source, translation["no_money"])
end
else
-- IF USE YOUR CUSTOM FRAMEWORK !!
-- ADD YOUR LINE FOR COMPARE PLAYER MONEY
TriggerClientEvent("mrw_minigolf:st_game", x_source, 1)
end
end)