[Help] Close all the mod/pay n spray garages
#1

Can somebody help me on how to close all the mod/pay n spray garages?
i try to remove the object and add another one to block it but whenever i get close to it it crashes
Help please.
Reply
#2

Add a new gate instead of default PNS`s gate.
Reply
#3

Quote:
Originally Posted by L0K3D
Посмотреть сообщение
Add a new gate instead of default PNS`s gate.
Код:
	CreateDynamicObject(5422,2071.6000000,-1831.5000000,14.6000000,0.0000000,0.2500000,359.5000000); //object(laespraydoor1) (1)
	CreateDynamicObject(5779,1041.3000000,-1026.0000000,32.7000000,0.0000000,0.0000000,90.0000000); //object(garagdoor1_lawn) (1)
	CreateDynamicObject(5856,1025.0000000,-1029.4000000,33.1000000,0.0000000,0.0000000,90.2500000); //object(lawnspraydoor1) (1)
	CreateDynamicObject(6400,488.3000000,-1734.8000000,12.4000000,359.7500000,359.0000000,79.2460000); //object(spraydoor_law2) (2)
	CreateDynamicObject(13028,720.0000000,-462.5000000,16.8000000,0.0000000,0.0000000,90.0000000); //object(ce_spraydoor1) (1)
	CreateDynamicObject(11313,-1935.8000000,239.0000000,35.3000000,0.0000000,0.0000000,92.0000000); //object(modshopdoor_sfse) (1)
	CreateDynamicObject(11319,-1904.5000000,277.9000000,42.9000000,0.0000000,0.0000000,90.0000000); //object(sprayshpdr2_sfse) (1)
	CreateDynamicObject(10575,-2716.5000000,217.5000000,5.3000000,0.0000000,0.0000000,178.0000000); //object(modshopdoor1_sfs) (1)
	CreateDynamicObject(9625,-2425.6000000,1028.1000000,52.3000000,0.0000000,0.0000000,270.0000000); //object(spdr_sfw) (1)
	CreateDynamicObject(3294,-1420.6000000,2591.0000000,57.7000000,0.0000000,0.0000000,270.0000000); //object(cxf_spraydoor1) (1)
	CreateDynamicObject(3294,-100.0000000,1111.7000000,21.7000000,0.0000000,0.0000000,90.0000000); //object(cxf_spraydoor1) (2)
	CreateDynamicObject(9093,2386.7000000,1043.9000000,11.6000000,0.0000000,0.0000000,90.0000000); //object(cmdgrgdoor_lvs) (1)
	CreateDynamicObject(5340,2644.9000000,-2039.3000000,14.1000000,0.0000000,0.0000000,270.0000000); //object(modlas2) (1)
This is my code but still crashes
Reply
#4

bump
Reply
#5

You cant remove them, that causes the crash.

So check your removebuildings
Reply
#6

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
You cant remove them, that causes the crash.

So check your removebuildings
I tried just creating the objects
and not removing them but still crashes
Reply
#7

You can't remove garages since it will always cause crash.

Simple method is to block them with object.

Here is include I used to use: https://sampforum.blast.hk/showthread.php?pid=3334346#pid3334346

It's simple and you don't need to create objects manually for each garages. Just place BlockGarages(true, GARAGE_TYPE_ALL, "Some_text"); under OnGameModeInit and you're done.
If you don't want any text to be displayed on invisible wall than just write BlockGarages();
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)