Hey Ryu, very nice code!
I’m thinking here, its possible to change the main Weight from inventory for VIP players with this resource? =D
I’m using this inventory resource
Yo Ryu! Nice script ici. Je prévois de prendre un serveur avec le max de slots, ram et tout le tralala pour que ça puisse supporter toutes mes ressources et je prévois du coup d’utiliser ton script pour que la communauté puisse m’aider si elle le souhaite pour tenir le serveur donc du coup pour ça, GG de ouf tu vas sauver beaucoup de personnes dans le même cas que moi. Je voudrai savoir en plus si ce système se rapproche de près ou de loin de celui du serveur Arcadia par exemple, avec le concess VIP, armes et pet. Si c’est possible d’implémenter un catalogue etc etc.
Cimer pour le taf
How can i apply this on personal ped shop menu?
function OpenPetShop()
local elements = {}
for i=1, #Config.PetShop, 1 do
table.insert(elements, {
label = ('%s - <span style="color:green;">%s</span>'):format(Config.PetShop[i].label, _U('shop_item', ESX.Math.GroupDigits(Config.PetShop[i].price))),
pet = Config.PetShop[i].pet,
price = Config.PetShop[i].price
})
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'pet_shop', {
title = _U('pet_shop'),
align = 'bottom-right',
elements = elements
}, function(data, menu)
ESX.TriggerServerCallback('eden_animal:buyPet', function(boughtPed)
if boughtPed then
menu.close()
end
end, data.current.pet)
end, function(data, menu)
menu.close()
end)
end
how can i apply this to the vehicleshop that has a catergory (vip)
Is it possible to make a certain list of cars VIP only?
how do you add it to the vehicle SHOP Please someone tell me
Hey, can someone can tell me how to say to a server script if player is vip ?
Hey, can someone help me, I want to create a vehicleshop only with vip access and if you don’t have vip, then I want a notification like “You don’t have a VIP license”. I would use esx_vehicleshop for this
im trying to find a way to implement this into the advancedvehicleshop so only vips have access. can anyone help out?
I`m looking for the same thing. I want to give donators acces to donator cars with a vehicleshop
What do you mean why add vip ?
Plus my code is not even in there.
Hallo, it shows me everytime that i´m not a VIP. I´m using it on a modified esx_vehicleshop
my OpenShopMenu code:
if CurrentAction then
ESX.ShowHelpNotification(CurrentActionMsg)
if IsControlJustReleased(0, 38) then
if CurrentAction == 'shop_menu' then
ESX.TriggerServerCallback('pxrp_vip:getVIPStatus', function(isVIP)
if isVIP then
OpenShopMenu()
else
TriggerEvent("grv_notify", "#ab0503", "Hinweis", "Du hast kein VIP Status")
end
end, GetPlayerServerId(PlayerId()), '1')
elseif CurrentAction == 'reseller_menu' then
OpenResellerMenu()
elseif CurrentAction == 'give_back_vehicle' then
ESX.TriggerServerCallback('esx_vipvehicleshop:giveBackVehicle', function(isRentedVehicle)
if isRentedVehicle then
ESX.Game.DeleteVehicle(CurrentActionData.vehicle)
ESX.ShowNotification(_U('delivered'))
else
ESX.ShowNotification(_U('not_rental'))
end
end, ESX.Math.Trim(GetVehicleNumberPlateText(CurrentActionData.vehicle)))
elseif CurrentAction == 'resell_vehicle' then
ESX.TriggerServerCallback('esx_vipvehicleshop:resellVehicle', function(vehicleSold)
if vehicleSold then
ESX.Game.DeleteVehicle(CurrentActionData.vehicle)
ESX.ShowNotification(_U('vehicle_sold_for', CurrentActionData.label, ESX.Math.GroupDigits(CurrentActionData.price)))
else
ESX.ShowNotification(_U('not_yours'))
end
end, CurrentActionData.plate, CurrentActionData.model)
elseif CurrentAction == 'boss_actions_menu' then
OpenBossActionsMenu()
end
CurrentAction = nil
end
else
Citizen.Wait(500)
end
end
i find the same script but maybe need to add coin, so admin can give player to access the donator shop
Could you help me to add your script to esx_kashacters, that VIPs can use a 3. Char?
Hello, I am having an issue with this script. I have a custom dealer ship, I added the sv and cl scripts to my basics and fxmanifest, I have a donor catagory in my vehicle shop, I can still buy vehicles even without the donor perms. What have I done wrong?
is it possible that if u have a certain discord role u get the vip?
So can you help me i want when someone have vip to tell left down in the screen the level and
VIP LEVEL : 3 OR 2 OR 1
can I use this with slash commands? so only VIP can use certain commands. and if so can you show an example I’m only no day 3 of making my own server.
thanks.
Hello, the dealership is working but if I put in the sql the number 0 I can still enter the dealership, any solution?
Doesn’t work on new ESX.
Did anyone try to edit the code and get this to work on Esx 1.2 and above?
Thanks
