• Content count

  • Joined

  • Last visited

Community Reputation

37 Good


About MIKI785

  • Rank
  • Birthday 21/04/1997


  • Location
    Dublin, Ireland

Recent Profile Visitors

1,612 profile views
  1. "got vehicle"

    This or you can make the vehicle move on its own using setElementVelocity.
  2. Help please

    You don't *have* to, but it will keep growing if you don't. But don't clear the whole blockList, only the player's table. So, addEventHandler("onPlayerQuit", function () blockList[source] = nil end) should do the job.
  3. error 5 : access denied

    Well, it says 'Access denied' so did you try running it as an Administrator? That's the only thing I can think of besides a reinstall.
  4. Help please

    Really nice subject.. very informative of the content... Aaaaaaanyway, I'm not really sure what Dimos7 was trying to do but I'd do something similar to this: local mycrpmpartner = {} --what's this for?? local blockList = {} --simple table for out block list function thePM(thePlayer,commandName,sendToName,...) local pmWords = { ... } local pmMessage = table.concat( pmWords, " " ) if sendToName then if getPlayerFromNamePart2(sendToName) then local toPlayer = getPlayerFromNamePart2(sendToName) if not (toPlayer == thePlayer) then --that () needed if not (pmMessage == "") then if blockList[toPlayer] and blockList[toPlayer][thePlayer] then --the table is present for the recipient AND the recipient has us blocked. outputChatBox("Blocked", thePlayer) return false --bye bye end outputChatBox("#757575[PM] Message to #ff00ff" .. getPlayerName(toPlayer) .. ":#ffffff " .. pmMessage, thePlayer, 255, 255, 255, true) outputChatBox("#FF0000[PM] Message from #ffFFff" .. getPlayerName(thePlayer) .. ":#ffff00 " .. pmMessage, toPlayer, 255, 255, 255, true) --These colour codes at the start are attritious btw. mycrpmpartner[thePlayer]=toPlayer mycrpmpartner[toPlayer]=thePlayer else outputChatBox("#FF0000[PM]Use:#ff9900 /pm [part of name] [message]", thePlayer, 255, 255, 255, true) end else outputChatBox("#FF000[PM] You cannot PM yourself #ff9900!", thePlayer, 255, 255, 255, true) end else outputChatBox("#FF0000[PM] Player not found! #FFFF00[#ff9900"..sendToName.."#FFFF00]", thePlayer, 255, 255, 255, true) end else outputChatBox("#FF0000[PM]Use:#ff9900 /pm [part of name] [message]", thePlayer, 255, 255, 255, true) end end addCommandHandler("pm", thePM) function getPlayerFromNamePart2 ( name ) if ( name ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do local name_ = getPlayerName ( player ):gsub ( "#%x%x%x%x%x%x", "" ):lower ( ) if name_:find ( tostring ( name ):lower ( ), 1, true ) then return player end end end end addCommandHandler("blockpm", function (player, cmd, playerToBlock) if not blockList[player] then blockList[player] = {} --create a table for our player if there isn't one yet end playerToBlock = getPlayerFromNamePart2(playerToBlock) if not playerToBlock then return end blockList[player][playerToBlock] = not blockList[player][playerToBlock] --shouldn't complain about it being nil outputChatBox(getPlayerName(playerToBlock) .. " " .. (blockList[player][playerToBlock] == true and "" or "un") .. "blocked", player) end) I'm not guaranteeing that it will work, it's only a quick write-up but you should get the idea. Keep in mind that the blockList table isn't being cleared in any way, so it will keep growing unless you take care of that (eg. onPlayerQuit).
  5. Non-running server resource?

    Use <download_priority_group> in the meta.xml to make the 'gui' resource start first.
  6. [HELP]Change car spawn color to white in freeraom

    This script doesn't actually create any vehicles, I suppose that's done in server.giveMeVehicles -> post that instead. Also, use the code tags (<>).
  7. [JS]Converted Maps

    Are you sure that the map is indeed running? I don't know what are the coordinates for this map.. one way of making sure to not fall is to spawn yourself in a helicopter. Something like this: addEventHandler("onPlayerJoin", root, function () local v = createVehicle(425, 0, 0, 100) spawnPlayer(source, 0, 0, 100) warpPedIntoVehicle(source, v) end) But this should really go into scripting and not here.
  8. [JS]Converted Maps

    I think that the resources CodyJ provides contain only the maps, nothing else. You have to do the actual gameplay yourself, including the spawn.
  9. Camber

    Is that screenshot yours? Or are you asking how to do that? If the latter then use setVehicleComponentRotation. Each wheel is a separate component that you may set a rotation for. Edit: I think I misread it, I can't help you with this then. Ignore me .

    Try to install the WinXP instead then, you can get it here: http://mirror.s2.mtasa.ohbah.com/mtasa/main/mtasa_xp-1.5.5.exe Instructions are here: https://wiki.multitheftauto.com/wiki/Client_on_Linux_Manual But it mentions on the page that 1.5 has trouble running, so I don't know if it will actually work for you.

    I'm not an expert in this but I can see that the libcef.dll library is responsible for the crash, that's CEF (browser used ingame). Did you install the win7+ version? I think there is a 'legacy' winXP version that contains older version of CEF, maybe try installing that instead?
  12. I can't play

    Are you saying that your FPS sticks to 50? I wouldn't call that laggy :D. But anyway, it's possible that your monitor has a 50hz or 100hz refresh rate and you've got V-sync enabled. Check your graphics settings and see if it is enabled, if so, disable it.
  13. [Question] Internal.db

    You can't access the internal.db from within Lua. You may only access .db files located in resources or in the 'global' database directory as described on the dbConnect wiki page. The only way to connect to internal.db is to do it externally or make a module that will make it accessible. Another way could be to for example to use the FileSystem module and copy the internal.db to your resource's directory every once in a while. I'm not sure if you could access it directly using that module. Edit: It's possible that a symbolic link would do the trick, that would most likely be the best solution.
  14. The last reply

    So, is this topic dead now?
  15. Array -> Question

    Well yeah.. it's quite simple really. Just create a separate table with the values of the nested tables and insert it.. there's not much to it. local poll = { ["nazev"] = "And", ["obsah"] = ' Yeah ipsum dolor sit amet, consectetur adipiscing elit. Integer rutrum quam mauris, sed \n commodo odio auctor malesuada. Sed lacus lacus, \n semper a nisi nec, condimentum tincidunt sem. \n Aliquam et odio nulla.', ["hlasoval"] = 0, ["Ano"] = 10, ["Ne"] = 15, } Ankety:insert(poll)