-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
Other resource are using it too so it matters for them. (admin, editor, mapmanager etc.)
-
AFAIK "misc" = remaining So if you don't think it fits in "gamemode", "script", "map" then you can consider to put it in misc.
-
Nothing is saved at index 6? (export function > script a both) and I don't see anything that is storing anything at groupTable.(export function) So it is for me an puzzle which can't be solved because of a leak of information. Please post the required information and not more then that.
-
Debug your code if you want to know why it isn't working. /debugscript 3 function posicao(button,pressOrRelease) outputDebugString("key pressed Button: " .. tostring(button) .. ", State: " .. tostring(pressOrRelease)) if button == "F11" and pressOrRelease then local myPlayer = getLocalPlayer () local myBlip = createBlipAttachedTo ( myPlayer, 2 ) end end addEventHandler("onClientKey", root, posicao)
-
You forgot to call the getLocalPlayer function >>> () local myplayer = getLocalPlayer local myplayer = getLocalPlayer()
-
onClientKey Doesn't take extra arguments. function posicao(button,pressOrRelease) if button == "f11" and pressOrRelease then end end addEventHandler("onClientKey", root, posicao)
-
or he can use table. Read wiki please,
-
This function don't work Fine if you take a no for correct answers, then figure it out by yourself.
-
Try: local timeHasPast = export.race:getTimePassed()
-
Because DD has no finish. For normal race use: "onPlayerFinish" [color=#00FF00]player[/color] = source [color=#00FF00]rank[/color] = argument1 [color=#00FF00]time[/color] = argument2
-
No, stay of it. Add this to your code. addEvent("onPlayerWinDD", true) addEventHandler( "onPlayerWinDD", root, function() outputChatBox("You won the game!",source) end)
-
It is, when it is a dd map. Open your race zip/folder. Open the folder called "modes". There is a file called "destructionderby.lua".(open it) When you scroll down to line 74 you see this: triggerEvent( "onPlayerWinDD",activePlayers[1] ) Which makes it work, so don't be sad. addEvent("onPlayerWinDD", true) addEventHandler( "onPlayerWinDD", root, function() outputChatBox("You won the game!",source) end)
-
https://wiki.multitheftauto.com/wiki/ToJSON By using tojson and fromjson to save more then one id.
-
That is not how I can help you. I am only helping people who are trying to write the code by them self. When they do, I will correct the code and give tips/examples. So give it another try.
-
Use onPlayerLogout. https://wiki.multitheftauto.com/wiki/OnPlayerLogout You don't need the isGuestAccount function with those events. onPlayerLogin = account onPlayerLogout = guestAccount
-
You never know, because I have the feeling he has more items inside his table then he is showing us at the moment. He may have defined one with a string or even a userdata. If you want to know what is going wrong, you have to keep open all options and possibility's.
-
Just simply use localPlayer inside your whole client code. It is a predefined variable and it is shorter so you have to write less characters. (and it is 1 ms faster then getLocalPlayer(), because it isn't a function.) .
-
There is only 1 way to find out. Which a scripter should first do, before posting his code here on the forum. ALSO KNOWN AS DEBUGGING jobsLocation = { {job = "Police Officer", x = 249.6259765625,y = 67.8125,z = 1002.9, r = 67, g = 156, b = 255, interior = 6 , dimension = 1 , team = "Police Force", skin = {280, 281, 282, 283, 284, 288}, jobEvent = "policeTaken", maxWL = 0, description =" bla bla bla bla bla"} } function ceateJobLocations() for index, val in pairs(jobsLocation) do local marker = createMarker(val.x, val.y, val.z-0.5, "cylinder", 1.5, val.r, val.g, val.b, 255) if marker then name[marker] = val.job local dimension = tonumber(val.dimension) if dimension then setElementDimension (marker, dimension ) else outputDebugString("Failed to set dimension, variable is nil/false. Table index: " .. index .. " .") end local interior = tonumber(val.interior) if interior then setElementInterior (marker, interior) else outputDebugString("Failed to set interior, variable is nil/false. Table index: " .. index .. " .") end addEventHandler("onMarkerHit", marker, enteredMarker) else outputDebugString("Failed to create marker. Table index: " .. index .. " .") end end end addEventHandler("onResourceStart", resourceRoot, ceateJobLocations)
-
Not for me, I get warnings with userdata's which aren't converted with tostring,
-
Nice!
-
It works? O_o
-
Well it Works, only the outputChatBox doesn't work. Userdata's must be convert to a string before they can be showed in the chat.
-
Voor mensen die graag een potje stealth willen spelen. Ook als je niet zo een deathmatch fan bent, met vrienden is het altijd leuk. De stealth gamemode is volledig gepatched inclusief extra mta syncs. Staff plekken vrij, zie onderaan de pagina. Extra informatie: (deze informatie is niet altijd even correct, omdat ik de stealth mode heb aangepast/gefixed) Om deze gamemode goed te spelen is het belangrijk dat de ping lager is dan 150, als deze toch hoger is dan heb je een nadeel in deze server. Je ping zal waarschijnlijk 60 of lager zijn, de server staat tenslotte in Nederland. Nooit geschoten is altijd mis en proberen kan nooit kwaad. P.s: Er zijn nog veel staff plekken open. mod > smod > staff_admin. Op aanvraag via pm, zijn deze te verkrijgen. Benodigde voor deze posities: geen misbruik van rechten voor eigen doeleinde en niet janken/huilen of what ever. klik hier om de server te joinen!
