
myonlake
Members-
Posts
2,312 -
Joined
-
Days Won
41
Everything posted by myonlake
-
Because you are not putting it correctly by yourself. addEvent("respawn:allsaints",true) addEventHandler("respawn:allsaints",root, function() addEventHandler("onClientRender",root,drawTheText) end ) function drawTheText() text = dxDrawText("Hello",454.0,425.0,886.0,581.0,tocolor(255,255,255,255),2.0,"pricedown","left","top",false,false,false) setTimer ( destroyElement, 5000, 1, text ) end I suggest you to start learning lua first, you could have fixed this yourself. There are errors, so try to fix it yourself now.
-
They are showing on both of them.
-
addEvent("respawn:allsaints",true) addEventHandler("respawn:allsaints",root, function() addEventHandler("onClientRender",root,drawTheText) end ) function drawTheText() text = dxDrawText("Hello",454.0,425.0,886.0,581.0,tocolor(255,255,255,255),2.0,"pricedown","left","top",false,false,false) end setTimer ( destroyElement, 5000, 1, text )
-
You cannot remove the radar from F11 or radar hud separately. You can disable the radar hud or F11 though.
-
function createWindow() wantedJanela = guiCreateWindow(80, 80, 250, 250, "", false) guiWindowSetSizable(wantedJanela, false) labelJanela = guiCreateLabel(20, 20, 250, 60, "Janela de Alteração de Wanted Stats", false, wantedJanela) labelNome = guiCreateLabel(10, 55, 250, 60, "Nome do Jogador :", false, wantedJanela) labelWanted = guiCreateLabel(30, 90, 250, 60, "Wanted Level :", false, wantedJanela) editWanted1 = guiCreateEdit(120, 50, 120, 25, "", false, wantedJanela) editWanted2 = guiCreateEdit(160, 85, 80, 25, "", false, wantedJanela) memoEdit = guiCreateMemo(10, 120, 230, 80, "Identifique o jogador e selecione o nivel de procurado para a alteração, os niveis podem ser de 0-6 .", false, wantedJanela) buttonAlterar = guiCreateButton(0, 210, 120, 30, "Alterar Nivel", false, wantedJanela) buttonFechar = guiCreateButton(130, 210, 120, 30, "Fechar", false, wantedJanela) end addEventHandler("onClientGUIClick", buttonFechar, function() destroyElement(wantedJanela) showCursor(false) guiSetInputEnabled(false) end, false ) addCommandHandler("wantedstats", function() createWindow() showCursor(true) guiSetInputEnabled(true) end )
-
Add this to the "Admin" group of your ACL file. <object name="resource.mapmanager"></object> Or then just: <object name="resource.*"></object>
-
It should show up on your radar as well, just go near the area and there it is. You're welcome.
-
Client-side local marker = createMarker(-28.599609375, 163.8994140625, 1.3999999761581, "cylinder", 1.60000002, 255, 0, 0, 255) addEventHandler("onClientMarkerHit", marker, function(hitElement, matchingDimension) if getElementType(hitElement) == "player" then guiSetVisible(GUIEditor_Window[2], true) showCursor(true) end end ) addEventHandler("onClientResourceStart", root, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[2] = guiCreateWindow(18, 307, 367, 431, "", false) guiSetAlpha(GUIEditor_Window[2], 1) guiWindowSetSizable(GUIEditor_Window[2], false) GUIEditor_Button[3] = guiCreateButton(22, 377, 88, 42, "Work", false, GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(246, 383, 86, 39, "Exit", false, GUIEditor_Window[2]) GUIEditor_Memo[2] = guiCreateMemo(16, 32, 339, 216, "=====|Farm Job|=====\nWelcome to the farm job\nthe farm job is about farm stuff \nso when you start go get the parcel of Seed\nand it's located on your map then go\nto the farm and drop the seed onto every arrow when you done wait 5 sec to get the plant\ngrown and go get the combine harvester and collect your crops when you done collecting \nhit the checkpoints and you get \n1200$\n\n=====|Farm Job|=====", false, GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[2], true) guiSetVisible(GUIEditor_Window[2], false) local skins = { { "Farmer", 158 }, { "Farmer Redneck", 159 }, { "Farmer Girl", 157 } } GUIEditor_Grid[1] = guiCreateGridList(12, 260, 346, 79, false, GUIEditor_Window[2]) guiGridListAddColumn(GUIEditor_Grid[1], "Select your skin", 0.2) for index,skin in ipairs(skins) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, skin[1], false, false) guiGridListSetItemData(GUIEditor_Grid[1], row, 1, skin[2]) end end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[4] then guiSetVisible(GUIEditor_Window[2], false) guiSetInputEnabled(false) showCursor(false) elseif source == GUIEditor_Button[8] then guiSetVisible(GUIEditor_Window[2], false) guiSetInputEnabled(false) showCursor(false) end end, false ) addEventHandler("onClientMarkerHit", marker, function(hitElement, matchingDimension) if getElementType(hitElement) == "player" then local vehicle = createVehicle(532, -29.7998046875 , 5.8994140625, 5.8994140625) triggerServerEvent("onVehicleRide", hitElement, vehicle) end end ) Server-side addEvent("onVehicleRide", true) addEventHandler("onVehicleRide", root, function(vehicle) warpPedIntoVehicle(source, vehicle) end )
-
createRadarArea(983.08239746094, 691.31982421875, 1900, 2200, 0, 255, 0, 175) local lvCol = createColRectangle(983.08239746094, 691.31982421875, 1900, 2200) addEventHandler("onColShapeHit", lvCol, function(hitElement, matchingDimension) if getElementType(hitElement) == "player" then if matchingDimension then outputChatBox("You entered a collision shape rectangle.", hitElement, 255, 255, 255, false) end end end )
-
Do NOT get Valhalla script if you seriously don't know what you're doing. It's not a script made for beginners or experienced scripters - it's for those who seriously are multilingual scripters. You are able to register via the UCP panel but I assure you, you don't get it to work.
-
function findPlayer(name) local matches = {} for i,v in ipairs(getElementsByType("player")) do if getPlayerName(v) == name then return v end local playerName = getPlayerName(v):gsub("#%x%x%x%x%x%x", "") playerName = playerName:lower() if playerName:find(name:lower(), 0) then table.insert(matches, v) end end if #matches == 1 then return matches[1] end return false end addCommandHandler("sendmoney", function(player, cmd, name, amount) local amount = tonumber(amount) if name and amount then local target = findPlayer(name) local money = getPlayerMoney(target) if money >= amount then takePlayerMoney(player, amount) givePlayerMoney(target, amount) outputChatBox("You gave " .. getPlayerName(target) .. " $" .. amount .. ".", player, 0, 255, 0, false) outputChatBox(getPlayerName(player) .. " gave you $" .. amount .. ".", target, 0, 255, 0, false) else outputChatBox("You do not have enough money.", target, 255, 0, 0, false) end end end )
-
local marker = createMarker(1281, -1664.0999755859, 12.5, "cylinder", 1.0, 0, 0, 651, 255) local team = createTeam("SWAT Team", 0, 0, 651) addEventHandler("onMarkerHit", marker, function(hitElement, matchingDimension) if getElementType(hitElement) == "player" then if matchingDimension then if isPedInVehicle(hitElement) then return end if not isSWAT(hitElement) then return end setElementModel(hitElement, 285) setPlayerTeam(hitElement, team) end end end ) function isSWAT(player) return isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup("SWAT")) end
-
Server-side local groups = {"Admin", "Moderator", "Super Moderator"} addEventHandler("onResourceStart", resourceRoot, function() teamstaff = createTeam("Staff", 255, 255, 255) end ) addCommandHandler("gostaff", function(player, cmd) local account = getPlayerAccount(player) if isGuestAccount(account) then return end local accountName = getAccountName(account) for i,v in ipairs(groups) do if isObjectInACLGroup("user." .. accountName, aclGetGroup(groups[v])) then if getElementData(player, "invincible") then setElementData(player, "invincible", false) outputChatBox("Staff Mode is now off.", player, 255, 255, 255) else setElementData(player,"invincible",true) outputChatBox("Staff Mode is now on.", player, 255, 255, 255) end if getPlayerTeam(player) ~= teamstaff then setPlayerTeam(player, teamstaff) setPlayerSkin(player, 217) end end end end ) Client-side addEventHandler("onClientPlayerDamage", root, function(attacker, weapon, bodypart, loss) if getElementData(source, "invincible") then cancelEvent() end end ) addEventHandler("onClientPlayerStealthKill", root, function(player) if getElementData(player, "invincible") then cancelEvent() end end )
-
Never use Valhalla script if you don't know what you're doing. It's not a simple script you know. Mabako has always made his scripts perfect so that only he can understand something from it, hehe.
-
Correct. I am using XML in my gamemode because people will have to suffer from not being able to learn scripting. I have a second version of my gamemode which is only MySQL so... they will have to edit it themselves if they want to have a smoother gamemode
-
I am still preferring no events to the mode since it's unnecessary.
-
And why are you using a command for it when it can only be enabled with the command. Just only use setDevelopmentMode without functions and make sure it's client-side, script started and meta.xml configured correctly.
-
I meant that he should restart it for just in case. Just close all unnecessary programs and restart xampp, there it goes.
-
Change the priority of the GUI elements and they won't pass your world map.
-
Unless you want to make colshapes on each street.