[Release] Police Garage

Im not saying it doesnt work, im sure it does, but not the way you want it to work, server.lua is not supposed to be empty, thats why you dont have the right files.

so yosang … why dont you post you vehshop_server.lua file then already and show us what should be in there … if we apparently have the “wrong files” and its “not working” then keep repeating the same thing and not helping …

Dont have permission to do that im afraid, but im sure with a little search youll be able to find it on old github files.

Not helping? All I wanted to do was help, by letting you know that an empty server file means that that version will not work, not for the purpose of the script. so chill your tits mate

Have you leave the store with permission?

When i select a car it duplicates. Is this a known issue?

if any payment system too work with this garage do this :slight_smile:

add this too server site


RegisterServerEvent('TjekCar')

AddEventHandler('TjekCar', function(vehicle, price)
	local source = source
	TriggerEvent('es:getPlayerFromId', source, function(user)

	if (tonumber(user.getMoney()) >= tonumber(price)) then
    local player = user.getIdentifier()
    print(player)
			-- Pay the shop (price)
			user.removeMoney(price)
      -- Save this shit to the database


      -- Trigger some client stuff
      TriggerClientEvent('FinishCar',source)

      TriggerClientEvent("es_freeroam:notify", source, "CHAR_SIMEON", 1, "Simeon", false, "Tak for købet , pas nu pü din nye bil\n")
    else
      -- Inform the player that he needs more money
    TriggerClientEvent("es_freeroam:notify", source, "Du har ikke nok penge , sü stop med at købe tak !!\n")
	end

end)
end)

add this too client site

delete all from 533 too 539 and put this inside

    	TriggerServerEvent("TjekCar", button.model, button.costs)

after 536 then put this inside :slight_smile:

 RegisterNetEvent("FinishCar")
AddEventHandler("FinishCar", function()
	boughtcar = true
	CloseCreator()
end)

iof you dont know how too do then download this <3


download with payment system ,
remember change the es_freeroam:notify too other thing if you dont use es_freeroam <3
policegarage.zip (5.0 KB)

take my version there everything work

They still duplicate for me

When I spawn a Car it Duplicates for me

what is this fuel hud ?

Hey good job but are there any way to put back in the garage?

Hello,

You don’t need to put te car back in the garage. You can take an infinite number of car if you want.

Yeah but it fucks it because when a police man need an new car instead of just propping the hole pd then yeah

Is it possible to make the blip where only persons with the cop police job can see the blip. I would also like to use this for dealers also.

You have to implant a link to data base with verification in the script.

How do we change the position of the shop, say for example Sandy Shores?

1 Like

It will be in the client.lua if anywhere, Change the co-or’s

1 Like

Having an issue where we added cars to the garage for police but when you goto select certain vehicle it crashes and menu goes away, no error or anything.

Can i use this script for esx?

How do i add custom cars to the shop ?