ali
Members-
Posts
132 -
Joined
-
Last visited
Everything posted by ali
-
now its visible to everyone, not what i wanted
-
Well i mean to make a marker visible for a team
-
no forget about the gui just the marker visible for one team
-
nvm about gui at start its just because marker co ordinates are 0 0 0
-
farmerW = guiCreateWindow(336, 191, 601, 353, " Hunter Window", false) guiWindowSetSizable(farmerW, false) guiSetAlpha(farmerW, 1.00) guiSetProperty(farmerW, "CaptionColour", "FF3D49C1") accept = guiCreateButton(19, 251, 183, 58, "Accept", false, farmerW) guiSetFont(accept, "default-bold-small") farmmemo = guiCreateMemo(9, 27, 582, 175, "Treasure Hunter Job :- \n\nOnce you accept you will see a marker once you will see blips follow the blip and you will see a marker there once you enter the marker, if you are lucky you will find either money or gun bullets", false, farmerW) decline = guiCreateButton(398, 251, 183, 58, "Cancel", false, farmerW) guiSetFont(decline, "default-bold-small") guiSetVisible(farmerW,false) showCursor(false) function visi() guiSetVisible(farmerW,true) showCursor(true) end addEvent("go",true) addEventHandler("go", getLocalPlayer(), visi) addEventHandler("onClientGUIClick", root, function() if (source == accept ) then triggerServerEvent("setTeam",getLocalPlayer()) guiSetVisible(farmerW,false) showCursor(false) elseif (source == decline) then guiSetVisible(farmerW,false) showCursor(false) end end ) client farmerMarker = createMarker(0, 0, 0,"cylinder") createBlipAttachedTo(farmerMarker,25) local markers = { {-712.28870, 959.58148, 12.33588}, {-721.93903, 938.94037, 12.13281}, } function createTeams() teamhunt = createTeam ("Treasure Hunter", 255,255,255 ) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createTeams) function visi(hitElement) triggerClientEvent(hitElement,"go",hitElement) end addEventHandler("onMarkerHit", farmerMarker, visi) function setHunter() team = getPlayerTeam(source) if not (team == teamhunt) then k = setPlayerTeam(source,teamhunt) setPlayerNametagColor(source, 0,255,255) local randomX, randomY, randomZ = unpack(markers[math.random(#markers)]) local theMarker = createMarker ( randomX, randomY, randomZ, "cylinder", 1.5, 0, 255, 255, 170, teamhunt) createBlipAttachedTo(theMarker,0) end end addEvent("setTeam",true) addEventHandler("setTeam",getRootElement(),setHunter) server this script s not complete butproblem how to make markers visible for the team
-
function createTeams() teamhunt = createTeam ("Treasure Hunter", 255,255,255 ) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createTeams) local randomX, randomY, randomZ = unpack(markers[math.random(#markers)]) local theMarker = createMarker ( randomX, randomY, randomZ, "cylinder", 1.5, 0, 255, 255, 170, teamhunt) like this?
-
I need to bind F1 to this and im getting stuck using bindKey --- and i need it on "onClientPlayerJoin" here is the script function Show(key,keyState) visible = guiGetVisible(ppanel) if visible == false then guiSetVisible(ppanel, true) showCursor(true) elseif visible == true then guiSetVisible(ppanel, false) showCursor(false) end end addEvent("ShowSelect", true) addEventHandler("ShowSelect", root, Show)
-
hmm?
-
i removed it because i couldn't understand that part
-
function skins() setElementModel( source, 255 ) end addEvent("Skin",true) addEventHandler("Skin", getRootElement(), skins ) function Jet() if doesPedHaveJetPack ( source ) then removePedJetPack ( source ) else givePedJetPack ( source ) end end addEvent("JetPack",true) addEventHandler("JetPack", getRootElement(), Jet ) function wep ( ) giveWeapon( source, 34, 5 ) end addEvent("Sniper", true) addEventHandler("Sniper", getRootElement(), wep )
-
Client side GUIEditor_Image = {} panel = guiCreateWindow(252,61,636,489,"VIP Panel",false) grid = guiCreateGridList(10,22,617,184,false,panel) guiGridListSetSelectionMode(grid,2) guiGridListAddColumn(grid,"VIP stuff ",0.2) GUIEditor_Image[1] = guiCreateStaticImage(10,213,613,267,"images/ali.jpg",false,panel) guiSetVisible(panel, false) showCursor(false) function show () visible = guiGetVisible(panel) if visible == false then guiSetVisible(panel, true) showCursor(true) else guiSetVisible(panel, false) showCursor(false) end end addCommandHandler("open",show ) stuff = { {"Special Skin"}, {"Jetpack"}, {"Sniper Bullet"}, } for i,v in ipairs(stuff) do row = guiGridListAddRow(grid) -- guiGridListSetItemText(grid, row, 1, tostring(v[1]), false, false) guiGridListSetItemData(grid, row, 1, tostring(v[2])) end Notice( i removed sparrow's info )
-
i mean where ever i click on the gridlist i get the skin , sniper bullet and jetpack
-
there is a problem where ever i click on gridlist the things happen
-
function spawns(player) spawnPlayer(player, 1959.55, -1714.46, 10) end addCommandHandler("spawn", spawns)
-
yes but now i need to know how to trigger the next 2?
-
i know the event i just want to know how to use it in my script
-
this is a part of my script stuff = { {"Special Skin"}, {"Jetpack"}, {"Sniper Bullet"}, } for i,v in ipairs(stuff) do row = guiGridListAddRow(grid) -- guiGridListSetItemText(grid, row, 1, tostring(v[1]), false, false) guiGridListSetItemData(grid, row, 1, tostring(v[2])) end i want that when a player double clicks on anyone of the rows it triggers a server event