Jump to content

problem with spawners


[UCG]Mike

Recommended Posts

-- Anti compiller 
local CNGSecurity = {{{{{ {}, {}, {} }}}}}
 
-- The Vehicle Spawn Gui
vehiclesWindow = guiCreateWindow(395,237,241,413,"CNG ~ Vehicles",false)
vehiclesGrid = guiCreateGridList(9,26,221,307,false,vehiclesWindow)
guiGridListSetSelectionMode(vehiclesGrid,0)
spawnVehicleSystemButton = guiCreateButton(9,337,220,30,"Spawn Vehicle",false,vehiclesWindow)
closeWindowButton = guiCreateButton(9,373,220,30,"Close Window",false,vehiclesWindow)
guiGridListSetSortingEnabled ( vehiclesGrid, false )
 
vehicleName = guiGridListAddColumn( vehiclesGrid, " Vehiclename:", 0.80 )
 
addEventHandler("onClientGUIClick", closeWindowButton, function() guiSetVisible(vehiclesWindow, false) showCursor(false,false) guiGridListClear ( vehiclesGrid ) end, false)
 
local screenW,screenH=guiGetScreenSize()
local windowW,windowH=guiGetSize(vehiclesWindow,false)
local x,y = (screenW-windowW)/2,(screenH-windowH)/2
guiSetPosition(vehiclesWindow,x,y,false)
 
guiWindowSetMovable (vehiclesWindow, true)
guiWindowSetSizable (vehiclesWindow, false)
guiSetVisible (vehiclesWindow, false)
 
local pilotJobVehicles = {
[511] = {"Beagle", 6, 1, 1, 1},
[593] = {"Dodo", 6, 1, 1, 1},
[417] = {"Leviathan", 6, 1, 1, 1},
[519] = {"Shamal", 6, 1, 1, 1},
[553] = {"Nevada", 6, 1, 1, 1},
[487] = {"Maverick", 6, 1, 1, 1},
[513] = {"Stuntplane", 6, 1, 1, 1},
}
 
local allPilotJobVehicles = {
[511] = {"Beagle", 6, 1, 1, 1},
[593] = {"Dodo", 6, 1, 1, 1},
[417] = {"Leviathan", 6, 1, 1, 1},
[519] = {"Shamal", 6, 1, 1, 1},
[553] = {"Nevada", 6, 1, 1, 1},
[487] = {"Maverick", 6, 1, 1, 1},
[513] = {"Stuntplane", 6, 1, 1, 1},
[583] = {"Tug",6,1,1,1},
}
 
local pilotTug = {
[583] = {"Tug",6,1,1,1},
}
 
local criminalJobVehicles = {
[468] = {"Sanchez", 0, 0, 1, 1},
[466] = {"Glendale", 0, 0, 1, 1}
}
 
local copLV = {
[596] = {"Police Car (LS)", 0, 1, 1, 1},
[597] = {"Police Car (SF)", 0, 1, 1, 1},
[598] = {"Police Car (LV)", 0, 1, 1, 1},
[523] = {"HPV1000", 0, 1, 1, 1},
--[497] = {"Police Maverick", 0, 1, 1, 1},
[426] = {"Premier", 23, 1, 1, 1}
}
 
 
local fbiJobVehicles = {
[490] = {"FBI Rancher",131,131,131,131,r=0,g=0,b=0,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[528] = {"FBI Truck",131,131,131,13,r=0,g=0,b=0,r2=255,g2=255,b2=2551},
[427] = {"Enforcer",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[596] = {"Police Car (LS)",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[597] = {"Police Car (SF)",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[598] = {"Police Car (LV)",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[599] = {"Police Ranger",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[415] = {"Cheetah", 131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[551] = {"Merit",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[579] = {"Huntley",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[426] = {"Premier",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[523] = {"HPV1000",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[468] = {"Sanchez",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[451] = {"Turismo",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
}
 
local fbiAir = {
[497] = {"Police Maverick",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[519] = {"Shamal",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[447] = {"Seasparrow",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
}
 
local fbiSea = {
[472] = {"Coastguard",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[595] = {"Launch",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
[430] = {"Predator",131,131,131,131,r=0,g=0,b=0,r2=255,g2=255,b2=255},
}
 
local swatJobVehicles = {
[596] = {"Police Car (LS)", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[597] = {"Police Car (SF)", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[598] = {"Police Car (LV)", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[599] = {"Police Ranger", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[523] = {"HPV1000", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[601] = {"S.W.A.T", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[427] = {"Enforcer",131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[415] = {"Cheetah", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[426] = {"Premier", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[428] = {"Securicar", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[468] = {"Sanchez", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[451] = {"Turismo",131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[560] = {"Sultan",131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[490] = {"FBI Rancher", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
[579] = {"Huntley", 131,131,131,131,r=26,g=19,b=122,r2=255,g2=255,b2=255},
}
 
local swatAir = {
[447] = {"Seasparrow",53, 1 , 1, 1},
[519] = {"Shamal", 53, 1 , 1, 1},
 
}
 
local dodCars = {
[426] = {"Premier",0,0,0,0},
[596] = {"LSPD",0,0,0,0},
[597] = {"SFPD",0,0,0,0},
[598] = {"LVPD",0,0,0,0},
[599] = {"Police Ranger",0,0,0,0},
[490] = {"FBI Rancher",0,0,0,0},
[579] = {"Huntley",0,0,0,0},
[523] = {"HPV1000",0,0,0,0},
[468] = {"Sanchez",0,0,0,0},
[415] = {"Cheetah",0,0,0,0},
[551] = {"Merit",0,0,0,0},
[470] = {"Patriot",0,0,0,0},
[433] = {"Barracks",0,0,0,0},
[428] = {"Securicar",0,0,0,0},
[427] = {"Enforcer",0,0,0,0},
[528] = {"FBI Truck",0,0,0,0},
[407] = {"Fire Truck",0,0,0,0}
}
 
local swatHeli = {
[497] = {"Police Maverick", 53, 1, 1, 1},
[563] = {"Raindance",53,1,1,1},
[447] = {"Seasparrow",53, 1 , 1, 1},
[519] = {"Shamal", 53, 1 , 1, 1},
 
}
 
local swatBoat = {
[472] = {"Coastguard",53, 1 , 1, 1 },
[595] = {"Launch",53, 1 , 1, 1},
[430] = {"Predator",53, 1 , 1, 1 },
[493] = {"Jetmax",53, 1 , 1, 1 },
}
 
local medicJobVehicles = {
[416] = {"Ambulance", 1, 3, 0, 0}
}
 
local freeVehicles = {
[481] = {"BMX", 1, 1, 0, 0},
[510] = {"Mountain Bike", 1, 1, 0, 0},
[509] = {"Bike", 1, 1, 0, 0},
[529] = {"Willard", 1, 1, 0, 0},
[462] = {"Faggio", 1, 1, 0, 0}
}
 
local freeBoat = {
    [473] = {"Dinghy",1,1,0,0},
}
 
local mechanicJobVehicles = {
[554] = {"Yosemite", 0, 6, 0, 0},
[525] = {"Towtruck", 0, 6, 0, 0},
[422] = {"Bobcat", 0, 6, 0, 0},
[589] = {"Club", 6, 6, 0, 0}
}
 
 
local delieveryMan = {
[440] = {"Rumpo", 0, 6, 0, 0},
[413] = {"Delievery Van", 0, 6, 0, 0},
 
}
local policeJobVehicles = {
[596] = {"Police Car (LS)", 106, 1, 1, 1},
[597] = {"Police Car (SF)", 106, 1, 1, 1},
[598] = {"Police Car (LV)", 106, 1, 1, 1},
[599] = {"Police Ranger", 106, 1, 1, 1}
}
 
local ciaVehs = {
    [596] = {"Police Car (LS)", 106, 1, 1, 1},
    [597] = {"Police Car (SF)", 106, 1, 1, 1},
    [598] = {"Police Car (LV)", 106, 1, 1, 1},
    [599] = {"Police Ranger", 106, 1, 1, 1},
    [415] = {"Cheetah", 106, 1, 1, 1},
    [523] = {"HPV1000",106, 1, 1, 1},
    [426] = {"Premier", 106, 1, 1, 1},
}
 
local ciaAir = {
    [497] = {"Police Maverick",106, 1 , 1, 1},
}
 
local fireFighterVehicles = {
[407] = {"Fire Truck",3,1,1,1},
[544] = {"Fire Truck (Ladder)",3,1,1,1}
}
 
local policeTrafficJobVehicles = {
[523] = {"HPV1000", 106, 1, 1, 1},
[415] = {"Cheetah", 106, 1, 1, 1},
[426] = {"Premier", 106, 1, 1, 1},
[596] = {"Police Car (LS)", 106, 1, 1, 1},
[597] = {"Police Car (SF)", 106, 1, 1, 1},
[598] = {"Police Car (LV)", 106, 1, 1, 1},
[599] = {"Police Ranger", 106, 1, 1, 1}
}
 
local policeDogJobVehicles = {
[523] = {"HPV1000", 106, 1, 1, 1},
[415] = {"Cheetah", 106, 1, 1, 1},
[426] = {"Premier", 106, 1, 1, 1},
[596] = {"Police Car (LS)", 106, 1, 1, 1},
[597] = {"Police Car (SF)", 106, 1, 1, 1},
[598] = {"Police Car (LV)", 106, 1, 1, 1},
[599] = {"Police Ranger", 106, 1, 1, 1}
}
 
local militaryVehicles = {
[596] = {"Police Car (LS)", 44, 1, 1, 1},
[597] = {"Police Car (SF)", 44, 1, 1, 1},
[598] = {"Police Car (LV)", 44, 1, 1, 1},
[599] = {"Police Ranger", 44, 1, 1, 1},
[470] = {"Patriot", 1, 1, 1, 1},
[468] = {"Sanchez", 44, 1 , 1, 1},
[433] = {"Barracks", 44, 1 , 1, 1},
[428] = {"Securicar", 44, 1 , 1, 1},
[426] = {"Premier", 44, 1 , 1, 1},
[500] = {"Mesa", 44, 1, 1, 1},
[432] = {"Rhino", 1, 1, 1, 1},
[476] = {"Rustler", 44, 1 , 1, 1},
[579] = {"Huntley", 44, 1, 1, 1},
[519] = {"Shamal", 44, 1 , 1, 1},
[520] = {"Hydra", 1, 1, 1, 1},
[548] = {"Cargobob", 1, 1, 1, 1},
[563] = {"Raindance",53,1,1,1},
[497] = {"Police Maverick", 44, 1 , 1, 1},
[447] = {"Seasparrow", 1, 1, 1, 1},
[425] = {"Hunter", 1, 1, 1, 1}
}
 
Link to comment

I assume you call the server function from your client code and expect "source" to be a player right? If so then replace "source" with "client", as specified in the documentation for triggerServerEvent source doesn't always pass the correct player element, you may also check that function on your client script and verify that you pass the correct element as well.

Link to comment
I assume you call the server function from your client code and expect "source" to be a player right? If so then replace "source" with "client", as specified in the documentation for triggerServerEvent source doesn't always pass the correct player element, you may also check that function on your client script and verify that you pass the correct element as well.

:oops: its easy from you but its hard from me

plzz do it from me if you can

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...