msyyn
Members-
Posts
48 -
Joined
-
Last visited
-
Days Won
1
Everything posted by msyyn
-
That's what I did, but was wondering if anyone has made one like this
-
Does anyone know if there exists a snowball script, similar to shown in the video?
-
local messages = { "Visit our website at www.google.com!", "Did you know? These messages are automated!", "Add another message here!" } local prefix = "[INFO] #FFFFFF" -- message prefix local interval = 5 -- time between messages (minutes) function outputRandomMessage() local msg = messages[math.random(#messages)] outputChatBox(prefix .. msg, root, 3, 169, 244, true) end setTimer(outputRandomMessage, interval * 60 * 1000, 0) Output looks like: [INFO] Did you know? These messages are automated! Are you looking for something like this? Or what do you mean by words loop.
-
That price doesn't cover even the designing part
-
GTA V map
- 154 replies
-
- lc
- carmageddon
-
(and 1 more)
Tagged with:
-
How to disable Open mtaserver.conf and find <auth_serial_groups> and change to below <auth_serial_groups></auth_serial_groups> Note: Authorized Serial Account Protection helps prevent your server from getting hacked. If there is a chance any of your admins are using the same password on other servers, then do not disable this feature. It literally says it on the link you just posted
-
Line 69 and 70 is missing account for argument 1? Check the code ..
-
function openP() local guiState = guiGetVisible(aWarpForm) if guiState then guiSetVisible(aWarpForm, false) showCursor(false) elseif not guiState then guiSetVisible(aWarpForm, true) showCursor(true) end end addCommandHandler("panel", openP) You had the command handler inside the function-- start debugging your code and actually read through it. If a code is not working, 90% cases it's a typo / user error. Also use tabs. pls. PS. the code has other issues aswell
-
He literally said what you have to do Add the first code snippet to a server lua file and the 2nd one to scoreboard's client-side file.
- 9 replies
-
- 1
-
- scoreboard
- flag
-
(and 2 more)
Tagged with:
-
if attacker ~= source then ... You could try this to prevent it ending when you kill yourself. Also, why are you counting length of table like this? You can do simply this: local item = itens[math.random(#itens)][1] The code has few other issues as well, check your scopes
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=292
-
What does the debug console say? Try defining variable valoda before the loop (e.g. local valoda = "") Make sure that dxDraw doesn't clip the text. EDIT: local valoda = "" for i = 1, 3 do local lang = getElementData(localPlayer, "languages.lang" .. i) if lang and lang ~= 0 then local skill = getElementData(localPlayer, "languages.lang" .. i .. "skill") local langname = exports['language-system']:getLanguageName(lang) if langname then valoda = valoda .. "\n - "..langname.."("..skill.."%)" end end end -- and dxDrawText("Valodas: "..valoda, screenW * 0.2161, screenH * 0.4981, screenW * 0.4130, screenH * 0.5574, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, true, false, false, false)
-
Would be interesting to see how the design of it is. Making dxLib that's clean (design wise) and yet powerful performance wise is welcome
-
Make sure to also store the spikes somewhere so you can delete them when player quits / dies so there won't be 1000 spikes laying around the map
-
Read what IIYAMA said he has solution to figure out where your code went wrong Your fault if you don't read
-
That's like trying to ride a bike without wheels. Not gonna work
-
You can use this to get position in front etc. https://wiki.multitheftauto.com/wiki/GetElementMatrix function getPositionFromElementOffset(element,offX,offY,offZ) local m = getElementMatrix ( element ) -- Get the matrix local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] -- Apply transform local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z -- Return the transformed point end -- Get the position of a point 3 units to the right of the element: x,y,z = getPositionFromElementOffset(element,3,0,0) -- Get the position of a point 2 units in front of the element: x,y,z = getPositionFromElementOffset(element,0,2,0) -- Get the position of a point 1 unit above the element: x,y,z = getPositionFromElementOffset(element,0,0,1)