actually, it is 'Base', if that doesn't work, try this,
Client:
addEventHandler('onClientGUIClick',guiRoot,function( )
if ( source == GUIEditor_Button[1] ) then
triggerServerEvent ('NRG',localPlayer)
end
end)
Server:
addEvent ( 'NRG', true )
addEventHandler ( 'NRG',root,function ( )
if not( string.find(getMapName(),"Base",1,true) or string.find(getMapName(),"base",1,true)) then
outputChatBox("Sorry, but you need to be in a Base map!",100,0,0)
return
end
if ( getPlayerMoney ( source ) ) >= ( 1500 ) then
takePlayerMoney ( source, tonumber ( 1500 ) )
local x, y, z = getElementPosition ( source )
local vehicle = createVehicle ( 411, x, y, z )
warpPedIntoVehicle ( source, vehicle )
end
end )