-
Posts
732 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Bean666
-
if you want ACL , Here is a code. it uses markerhit functions. make sure to change coordinates and the ACL Name and make sure to move your self to the ACL That you have put. and make sure gate coordinates is the same with marker coordinates. local gate = createObject(985, 263.9, -1333.5, 53.251480102539, 0, 0, 35) local marker = createMarker(264.177734375, -1333.2490234375, 53.251480102539, "cylinder", 8, 0, 0, 0, 0) function moveGate(psource) local Nexususergroup = getAccountName(getPlayerAccount(psource)) if isObjectInACLGroup("user."..Nexususergroup, aclGetGroup("Nexus")) then moveObject(gate, 1000, 263.9, -1333.5, 46) end end addEventHandler("onMarkerHit", marker, moveGate) function move_back_gate() moveObject(gate, 1000, 263.9, -1333.5, 53.251480102539) end addEventHandler("onMarkerLeave", marker, move_back_gate)
-
i love this one :3
-
/tentbk --Save the cars manuali /loadtents --Load the cars you mean /tentbk --Saves the tents manually /loadtents -- Loads the tents. ?
-
we can't help u if u wont show us the code
-
thank you
-
New Update: Added Image! you can now add images such as logos , etc :3
-
Thank you. btw if u have suggestion just comment down :3 <3
-
hi , i created my transport system via DX GUI , Works fine with the commands. but buttons.... when i click the hospital Button , nothing happens even i had it setelementposition , any help here? function draw() base = dxDrawRectangle(393, 194, 478, 424, tocolor(29, 127, 29, 180), false) dxDrawText("Welcome To Los Santos Airport", 405, 203, 752, 233, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("LSPD", 531, 255, 176, 74, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Airport", 531, 361, 176, 74, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Hospital", 531, 463, 176, 74, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) lspd = guiCreateButton(531, 255, 176, 74, "Los Santos Police Dept.", false) guiSetAlpha(lspd, 0) guiSetVisible(lspd,false) airport = guiCreateButton(531, 361, 176, 74, "Airport", false) guiSetAlpha(airport, 0.00) guiSetVisible(airport,false) hospital = guiCreateButton(531, 463, 176, 74, "Hospital", false) guiSetAlpha(hospital, 0) guiSetVisible(hospital,false) guiSetVisible ( base, false ) showcursor (true) end addEventHandler("onClientGUIClick",hospital,function() if ( source == hospital) then guiSetVisible(base, false) showCursor(false) setElementPosition ( getLocalPlayer(), -1154.2412109375, -1000.203125, 129.21875 ) end end ) local drawingPanel = false; function startDrawing_CMD() if(drawingPanel == false) then addEventHandler("onClientPreRender", getRootElement(), draw); drawingPanel = true; showCursor(true) else removeEventHandler("onClientPreRender", getRootElement(), draw); drawingPanel = false; showCursor(false) end end addCommandHandler("teleport", startDrawing_CMD, false, false);
-
Update Added- New Panel!: Added 2 Gridlists. to seperate good guys and bad guys. Are there any suggestions?
-
oh yeah sorry i didnt see that.
-
oh sorry , i though u wanted to disable headshot. u ment u want zombies to be damaged in their body if a player shoots in their body?
-
i think this will work. remove this in line 296 in zombie_client.lua triggerServerEvent ("headboom", source, source, attacker, weapon, bodypart ) and remove this in line 302 in zombie_server.lua addEvent( "headboom", true ) function Zheadhit ( ped,attacker, weapon, bodypart) if (getElementData (ped, "zombie") == true) then killPed ( ped, attacker, weapon, bodypart ) setPedHeadless ( ped, true ) end end addEventHandler( "headboom", getRootElement(), Zheadhit )
-
Good job it really looks nice!
-
Updated Added: Locked for ACL. Screenshots:
-
Update: Can be locked for gangs. Screenshot:
-
hi , i made my own spawn panel , and it's not yet released. You can spawn by clicking the gridlist and once you have clicked a gridlist , click the Spawn button . you can edit / add / remove some spawns in server.lua and client.lua Video: https://www.youtube.com/watch?v=at_nyUal ... e=youtu.be watch in 360p or 420p to see better. RELEASED: https://community.multitheftauto.com/ind ... s&id=10813 any suggestions comment below! Some updates that will come into this spawn panel is : DX Text - Spawn Panel. RECOMMENDED GANG SYSTEM: GANG SYSTEM WITH GANG Functions such as : Castillo's Gang System. Updates: Locked for Gang Locked for ACL Added 2 Gridlists Added Image! ScreenShots: New Panel: Old panel but showing the Gang-lock system: Old panel but showing the ACL-Lock system:
-
hi guys , i have a problem in my spawn script , it all works fine , when i press a button it sets my team , and puts a text in chatbox , but the problem is my player doesnt spawn , i did debugscript , no errors tho , here's my code , whats the problem plz any help appreciated. Code: client.lua GUIEditor = { button = {}, window = {}, label = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(348, 208, 541, 448, "Spawn Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.76) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(31, 65, 107, 45, "Military", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(215, 65, 107, 45, "Survivors", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(398, 65, 107, 45, "Rebels", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(31, 170, 107, 45, "Bravo Team", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(215, 170, 107, 45, "Alpha Team", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(398, 175, 107, 45, "Umbrella Corp", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(30, 249, 485, 189, "Spawn By Clicking a Button \nAllies\nMilitary\nAlpha Team\nSurvivors\nBravo Team\nHostiles\nRebels\nUmbrella Corp", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.label[1] = guiCreateLabel(398, 225, 133, 17, "Spawn Panel By Shaman ", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick",GUIEditor.button[1],function() if ( source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) triggerServerEvent("setmilitary",getLocalPlayer(),getLocalPlayer()) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[2],function() if ( source == GUIEditor.button[2]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) triggerServerEvent("setSurvivor",getLocalPlayer(),getLocalPlayer()) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[3],function() if ( source == GUIEditor.button[3]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) triggerServerEvent("setrebels",getLocalPlayer(),getLocalPlayer()) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[4],function() if ( source == GUIEditor.button[4]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) triggerServerEvent("setbravo",getLocalPlayer(),getLocalPlayer()) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[5],function() if ( source == GUIEditor.button[5]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) triggerServerEvent("setalpha",getLocalPlayer(),getLocalPlayer()) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[6],function() if ( source == GUIEditor.button[6]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) triggerServerEvent("setumbrella",getLocalPlayer(),getLocalPlayer()) end end ) addEvent("showGUI", true) function guishow(player) guiSetVisible(GUIEditor.window[1], true) showCursor(true) end addEventHandler("showGUI",getRootElement(),guishow) server.lua function onlogin() triggerClientEvent(source, "showGUI", source) end addEventHandler("onPlayerLogin", getRootElement(), onlogin) function createSurvivorTeam () SurvivorTeam = createTeam ("Survivors", 255, 200, 0) end addEventHandler ("onResourceStart", resourceRoot, createSurvivorTeam) function createMilitaryTeam () MilitaryTeam = createTeam ("Military", 0, 200, 0) end addEventHandler ("onResourceStart", resourceRoot, createMilitaryTeam) function createRebelsTeam () RebelsTeam = createTeam ("Rebels", 150, 150, 0) end addEventHandler ("onResourceStart", resourceRoot, createRebelsTeam) function createAlphaTeam () AlphaTeam = createTeam ("Alpha Team", 60, 50, 60) end addEventHandler ("onResourceStart", resourceRoot, createAlphaTeam) function createBravoTeam () BravoTeam = createTeam ("Bravo Team", 255, 0, 170) end addEventHandler ("onResourceStart", resourceRoot, createBravoTeam) function createUmbrellaTeam () UmbrellaTeam = createTeam ("Umbrella Corp", 255, 0, 0) end addEventHandler ("onResourceStart", resourceRoot, createUmbrellaTeam) function joinSurvivor() setPlayerTeam(source,SurvivorTeam) setPlayerNametagColor ( source, 255, 200, 0 ) setElementModel(source,127) spawnPlayer (source, -2523.3408203125, -619.9560546875, 132.5625, 0,127, 0, 0) outputChatBox("You have chosen to be a Survivor!",source,255,200,0) end addEvent("setSurvivor", true) addEventHandler("setSurvivor",root,joinSurvivor) function joinMilitary() setPlayerTeam(source,MilitaryTeam) setPlayerNametagColor ( source, 0, 200, 0 ) setElementModel(source,287) spawnPlayer (source, -1023.4560546875, -999.53515625, 129.21264648438, 0,287, 0, 0) outputChatBox("You have chosen to be a Military!",source,0,200,0) end addEvent("setmilitary", true) addEventHandler("setmilitary",root,joinMilitary) function joinRebels() setPlayerTeam(source,RebelsTeam) setPlayerNametagColor ( source, 150, 150, 0 ) setElementModel(source,127) spawnPlayer (source, -1023.4560546875, -999.53515625, 129.21264648438, 0,127, 0, 0) outputChatBox("You have chosen to be a Rebel!",source,150,150,0) end addEvent("setrebels", true) addEventHandler("setrebels",root,joinRebels) function joinAlpha() setPlayerTeam(source,AlphaTeam) setPlayerNametagColor ( source, 60, 50, 60 ) setElementModel(source,287) spawnPlayer (source, -1023.4560546875, -999.53515625, 129.21264648438, 0,287, 0, 0) outputChatBox("You have chosen to be an Alpha Team Soldier!",source,60,50,60) end addEvent("setalpha", true) addEventHandler("setalpha",root,joinAlpha) function joinBravo() setPlayerTeam(source,BravoTeam) setPlayerNametagColor ( source, 255, 0, 170 ) setElementModel(source,287) spawnPlayer (source, -1023.4560546875, -999.53515625, 129.21264648438, 0,287, 0, 0) outputChatBox("You have chosen to be an Bravo team Soldier!",source,255,0,170) end addEvent("setbravo", true) addEventHandler("setbravo",root,joinBravo) function joinUmbrella() setPlayerTeam(source,UmbrellaTeam) setPlayerNametagColor ( source, 255, 0, 0 ) setElementModel(source,284) spawnPlayer (source, -1023.4560546875, -999.53515625, 129.21264648438, 0,284, 0, 0) outputChatBox("You have chosen to be an Umbrella Corp!",source,255,0,0) end addEvent("setumbrella", true) addEventHandler("setumbrella",root,joinUmbrella) function onWasted(totalAmmo, killer, killerWeapon, bodypart, stealth) local x, y, z = 213.7412109375, 1868.505859375, 13.140625 -- Default position local team = getPlayerTeam ( source ) if ( team ) then local teamName = getTeamName ( team ) if ( teamName == "Military" ) then x, y, z = -1023.4560546875, -999.53515625, 129.21264648438 elseif ( teamName == "Survivors" ) then x, y, z = -1023.4560546875, -999.53515625, 129.21264648438 elseif ( teamName == "Rebels" ) then x, y, z = -1023.4560546875, -999.53515625, 129.21264648438 elseif ( teamName == "Umbrella Corp" ) then x, y, z = -1023.4560546875, -999.53515625, 129.21264648438 elseif ( teamName == "Bravo Team" ) then x, y, z = -1023.4560546875, -999.53515625, 129.21264648438 elseif ( teamName == "Alpha Team" ) then x, y, z = -1023.4560546875, -999.53515625, 129.21264648438 end end setTimer ( spawnPlayer, 3000, 1, source, x, y, z, 0, getElementModel ( source ), 0, 0, team ) setTimer ( outputChatBox, 3000, 1, "You Have Died! Do Better Next Time!",source, 0, 200, 0, false) end addEventHandler ("onPlayerWasted", getRootElement(), onWasted)
-
hi , i need help in my GUI , I want it private for an ACL . And only "VIP" People can have access to it by pressing F5. i tried isObjectinACLGroup functions , but i had some problems with it and doesnt work Code: Client.lua GUIEditor = { button = {}, window = {}, label = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(396, 152, 519, 434, "VIP Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF03FA0F") guiSetVisible (GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(121, 30, 277, 60, "Vip Panel", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 253, 232, 1) GUIEditor.button[1] = guiCreateButton(33, 133, 109, 41, "VIP Skin", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(197, 132, 101, 42, "M4", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(359, 132, 101, 42, "Deagle", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(33, 223, 109, 41, "VIP Skin 2", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(27, 380, 91, 39, "Close", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(185, 211, 324, 213, "VIP Panel By Shaman , Enjoy Donators :3\n\n--YOLO--\nFeatures:\n2 Vip Skins\nCheap Deagle , M4, M4 - 100$ , Deagle - 100$", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) addEventHandler("onClientGUIClick",GUIEditor.button[5],function() if ( source == GUIEditor.button[5]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[1],function() if ( source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) triggerServerEvent("vipskin",getLocalPlayer(),vipskin) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[4],function() if ( source == GUIEditor.button[4]) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) triggerServerEvent("vipskin2",getLocalPlayer(),vipskin2) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[2],function() if ( source == GUIEditor.button[2]) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) triggerServerEvent("giveweaponm4",getLocalPlayer(),giveweaponm4) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[3],function() if ( source == GUIEditor.button[3]) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) triggerServerEvent("giveweapondeagle",getLocalPlayer(),giveweapondeagle) end end ) function toggleVisible ( ) guiSetVisible ( GUIEditor.window[1] , not guiGetVisible(GUIEditor.window[1]) ) if (guiGetVisible (GUIEditor.window[1]) == true) then showCursor (true) else showCursor (false) end end bindKey ("F5", "down", toggleVisible) server.lua addEvent("vipskin",true) addEventHandler("vipskin",root, function() if ( getPlayerMoney (source) >= 0 ) then takePlayerMoney(source, 0) setPedSkin ( source, 171 ) end end) addEvent("vipskin2",true) addEventHandler("vipskin2",root, function() if ( getPlayerMoney (source) >= 0 ) then takePlayerMoney(source, 0) setPedSkin ( source, 173 ) end end) addEvent("giveweaponm4",true) addEventHandler("giveweaponm4",root, function() if ( getPlayerMoney (source) >= 100 ) then takePlayerMoney(source, 100) giveWeapon (source,31,200,true) end end) addEvent("giveweapondeagle",true) addEventHandler("giveweapondeagle",root, function() if ( getPlayerMoney (source) >= 100 ) then takePlayerMoney(source, 100) giveWeapon (source,24,200,true) end end)
-
thanks for the suggestion viruz , ill try it for the next update.
-
should i add that on the client or the server of the resource file? and by the way that time 3*60*1000 is 3 minutes right?
-
i know but i need some help with it.
-
hi guys is it possible to restart a resource automatically every 3 minutes? i know it is has some setTimer functions but i need help with it. any help appreciated
-
hi i'm here to share my weaponshop. i used it in my server and only for hours because i made a new one , so i'm here to share it in public . and you can add / edit / remove markers in client.lua and edit gun prices in server.lua. GUI Will show up when you step into a marker that is added in client.lua You can buy weapons by pressing the buttons , etc , and please do not remove my credits. Link: https://community.multitheftauto.com/ind ... s&id=10791 Screenshot:
-
i used debugscript 3 and it shown this.