- 
                
Posts
732 - 
                
Joined
 - 
                
Last visited
 - 
                
Days Won
1 
Everything posted by Bean666
- 
	Bad argument @ 'createBlip' [Expected number at argument 10, got root]
 - 
	do i need to edit things there? because when i added it didnt work.
 - 
	necktrox is it possible for normal blips too? such as this , help appreciated . local un = createBlip (-1157.5693359375, -927.427734375, 129.21875, 6)
 - 
	doesnt work when i added that piece of code in playerblips blips doesnt appear anymore , even i go close to my friend.
 - 
	hi guys , is it possible that you can only see playerblip of the player when the player is near? any help appreciated.
 - 
	thank you it works now! i appreciate your help castillo.
 - 
	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 = 213.7412109375, 1868.505859375, 13.140625 elseif ( teamName == "Survivors" ) then x, y, z = -2523.3408203125, -619.9560546875, 132.5625 end end setTimer ( spawnPlayer, 3000, 1, source, x, y, z, 0, getElementModel ( source ), 0, 0, team ) addEventHandler ("onPlayerWasted", getRootElement(), onWasted) this one didnt work , do i need to edit anything in here?
 - 
	should i add that on the onPlayerWasted function? sorry im kinda new in these things
 - 
	uhmm... sorry i dont get you , can u give me a small example?
 - 
	hi , i need help , is there anyway to make this as a team? because when the players die, different teams , they all respawn in this place when they die , is it possible to make different teams with a different respawn point? here is an example of my wasted / respawn system and is it possible for this wasted/respawn thing to attach it to the code of survivor and military if yes please help. function onWasted(totalAmmo, killer, killerWeapon, bodypart, stealth) if not( isGuestAccount (getPlayerAccount(source)) ) then local theWeapon = getPedWeapon (source) local weaponAmmo = getPedTotalAmmo (source) fadeCamera (source, false) setTimer (spawnPlayer, 3000, 1, source, 213.7412109375, 1868.505859375, 13.140625, 0, getPedSkin (source), 0, 0, getPlayerTeam(source)) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 3000, 1, source, true) setTimer ( outputChatBox, 3000, 1, "You Have Died! Do Better Next Time!",source, 0, 200, 0, false) end end addEventHandler ("onPlayerWasted", getRootElement(), onWasted) code of Military : function createMilitaryTeam () MilitaryTeam = createTeam ("Military", 0, 200, 0) end addEventHandler ("onResourceStart", resourceRoot, createMilitaryTeam) function joinMilitary() spawnPlayer (source, 213.7412109375, 1868.505859375, 13.140625, 0,287, 0, 0) setPlayerTeam(source,MilitaryTeam) setPlayerNametagColor ( source, 0, 200, 0 ) setElementModel(source,287) giveWeapon ( source, 31, 200 ) outputChatBox("You have chosen to be a Military Now Click Cancel To Close The GUI!And go to weaponshop",source,255,200,0) end addEvent("setMilitary", true) addEventHandler("setMilitary",root,joinMilitary) Code of survivor: function createSurvivorTeam () SurvivorTeam = createTeam ("Survivors", 255, 200, 0) end addEventHandler ("onResourceStart", resourceRoot, createSurvivorTeam) function joinSurvivor() setPlayerTeam(source,SurvivorTeam) setPlayerNametagColor ( source, 255, 200, 0 ) setElementModel(source,127) giveWeapon ( source, 31, 200 ) spawnPlayer (source, -2523.3408203125, -619.9560546875, 132.5625, 0,127, 0, 0) outputChatBox("You have chosen to be a Survivor!Now Click Cancel to close the GUI!",source,255,200,0) end addEvent("setSurvivor", true) addEventHandler("setSurvivor",root,joinSurvivor)
 - 
	thanks so much lacosta.
 - 
	thanks @Lacosta it worked and lacosta , is there a function if i Click the cancel button , Window will close?
 - 
	hi , my gui , help please , i have server.lua ready but idk if i have some mistakes there but , is there anway if a player clicks choose button in my gui then it will do the functions in my server.lua , ik it's triggerserverevent , but i'm having problems with it. Client.lua: local marker = createMarker( 203.68948364258, 1913.0572509766, 17.640625, "Cylinder", 2, 6, 240, 226, 255) GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(428, 169, 485, 449, "Survivors", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(148, 307, 194, 57, "Choose", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 24, 466, 247, "Survivors.... Allied With Military , if you choose this side , you will be spawned to the Military & Survivors Base. and there is no going back. and as a survivor , you will need to survive and explore san andreas while killing zombies and surviving for better experience.", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[2] = guiCreateButton(150, 379, 192, 52, "Cancel", false, GUIEditor.window[1]) addEventHandler("onClientMarkerHit", marker, function(player) if (player == localPlayer) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end) Server.lua: function createSurvivorTeam () SurvivorTeam = createTeam ("Survivors", 255, 200, 0) end addEventHandler ("onResourceStart", resourceRoot, createSurvivorTeam) function joinSurvivor() setPlayerTeam(source,SurvivorTeam) setPlayerNametagColor ( source, 255, 200, 0 ) setElementModel(source,127) giveWeapon ( source, 31, 200 ) outputChatBox("You have chosen to be a Survivor!",source,255,200,0) end addEvent("setSurvivor", true) addEventHandler("setSurvivor",root,joinSurvivor)
 - 
	Make ur self admin by editing ACL > Press P > resources and search for it then start it, and if you're not admin , u can start it via console by > start [resourcename]
 - 
	hi , how can i make this appear when i hit a marker. any help appreciated. NOTE: I have already created my own marker local marker = createMarker( 203.68948364258, 1913.0572509766, 17.640625, "Cylinder", 2, 6, 240, 226, 255) GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(428, 169, 485, 449, "Survivors", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(148, 307, 194, 57, "Choose", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 24, 466, 247, "Survivors.... Allied With Military , if you choose this side , you will be spawned to the Military & Survivors Base. and there is no going back. and as a survivor , you will need to survive and explore san andreas while killing zombies and surviving for better experience.", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) end )
 - 
	could u give a small example? please. so i could understand easily. , sorry i'm currently new in these kind of things
 - 
	hi , is it possible for local chat to do commands in it? because i have a global chat as O and local chat as T. and i want to make it to be able to do commands NOTE: The script is not mine , i just downloaded it from the community and edited a little bit. here is the local chat code: chat_range=100 addEventHandler("onPlayerJoin",getRootElement(), function () bindKey(source,"u","down","chatbox","Local") end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"u","down","chatbox","Local") end end) function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end function onChat(player,_,...) local px,py,pz=getElementPosition(player) local msg = table.concat({...}, " ") local nick=getPlayerName(player) local r,g,b = getTeamColor(getPlayerTeam(player)) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then outputChatBox("(Local) "..nick..": "..msg,v,r,g,b,true) end end end addCommandHandler("Local",onChat)
 - 
	as i know OMG doesnt really stop it's movements.
 - 
	alright it worked now thank you.
 - 
	can u give me an example please , im having a problem. it still doesnt work. sorry for the disturbance.
 - 
	should i put it on the function or in the after the end?
 - 
	hi , i have a problem , i need a solution to set the respawn delay , because when a player dies , it respawns so fast. and i want to put a delay like 3 seconds to respawn . any solution for this? Code: function spawnOnWasted (prevA, curA, autoRespawn) outputChatBox ("You Have Died!You Have Lost Your Weapons!Go To The WeaponShop To Buy Weapons!", source, 255, 0, 0, false) spawnPlayer (source, 214.39999389648, 1869.1999511719, 13.10000038147, 0, 287, 0, 0, spawnTeam) fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerWasted", getRootElement(), spawnOnWasted)
 
