Jump to content

toxicsmoke11

Members
  • Posts

    232
  • Joined

  • Last visited

Everything posted by toxicsmoke11

  1. in a milisecond it gets executed it will get all valid ped elements so you don't have to check if ped is element since chances of getting a ped which isn't an element are 0.0000000000000000000000001%
  2. turns out that i have forgot this line if (getResourceInfo(resource,"type") == "map") and (getResourceInfo(resource,"gamemodes") == "race") and getResourceInfo(resource,"name") then so if it would find a single resource without that name and map and gamemode thingy, it would abort the script anyway thanks for help guys
  3. without name i can't proceed. i have downloaded a random map and here is meta part of info "race" type="map" name="[DM] Javelin ft. StyLeX - Skilled Club" author="Javelin & StyLeX" version="1.0.1"> also im having problem with expected resource-data got resource warning which causes me to fail to get resources and their info
  4. wassim please read my looping example again and see better that 'resources' is a table value @XeoN- that's exactly the same thing i did except you used a variable which won't do anything
  5. hello, i am trying to loop through all resources but both methods give ridicilous errors method one for _,resources in pairs(getResources()) do local name = getResourceInfo(resources,"name") end method one: some error at getResourceInfo -- attempt to concentrate local 'resources' (a userdata value) method two: for _,resources in pairs(getElementsByType("resource")) do local name = getResourceInfo(resources,"name") end expected getResourceInfo... expected resource-data got resource -- ??????
  6. now i see why mta has disabled gta sa default traffic: because nobody could play with that amount of cars causing lag and why wouldn't i need it? i just had cars parked by the side and it caused lag which is really shit and it is MTA as everyone gets lag when approaching that area
  7. i want to ask why can't mta handle 60 vehicles at same area? like in range of 120 meters there are 60 vehicles and mta will lag like shit just because of few cars, why is that happening why is it all so shit this is embarrassing
  8. yea anubhav thats similiar to the thing which i was doing before except i didnt use any dx rectangles and your and my method would take too much time just to create one simple panel would it be possible though to do this staticImage = guiCreateStaticImage(...) -- bla bla function myFunction() if source == staticImage then -- do something end end addEventHandler("onClientGUIClick",getRootElement(),myFunction)
  9. well it could be anything, from background to gridlists buttons edit boxes, check boxes etc
  10. guys would this be possible to do without any buttons in this way guiCreateStaticImage and onClientGUIClick ?
  11. hello umm i was wondering whats the simplest way to make custom gui(buttons,background...) dx functions or gui image functions? and is there a way to do it easily? i know how to create custom gui already but my method takes too much time to finish so i was just wondering was there a simple way to either attach or something else custom guis to default guis?
  12. hello how do i even get radio links? how do i get stupid urls of stupid radios online? i try to get link address but it never ends with bullshit .aspx or whatever and im angry
  13. currently there is no way to use custom animations
  14. thanks guys tho but i got some weird issue admin\server\admin_server.lua:1458 admin security client/player mismatch from **.***.*.**(<-- this is hidden ip address) ( onElementDataChange player.state ) this player.state data is my custom data usually used to see what is player doing, not related with this "custom banning" at all, and yet its giving out this warnings if a banned person is playing and being in hell this admin function is causing this error function checkClient(checkAccess,player,...) if client and client ~= player and g_Prefs.securitylevel >= 2 then local desc = table.concat({...}," ") local ipAddress = getPlayerIP(client) outputDebugString( "Admin security - Client/player mismatch from " .. tostring(ipAddress) .. " (" .. tostring(desc) .. ")", 1 ) -- thats line 1458 cancelEvent() if g_Prefs.clientcheckban then local reason = "admin checkClient (" .. tostring(desc) .. ")" addBan ( ipAddress, nil, nil, getRootElement(), reason ) end return true end if checkAccess and g_Prefs.securitylevel >= 1 then if type(checkAccess) == 'string' then if hasObjectPermissionTo ( player, checkAccess ) then return false -- Access ok end if hasObjectPermissionTo ( player, "general.adminpanel" ) then outputDebugString( "Admin security - Client does not have required rights ("..checkAccess.."). " .. tostring(ipAddress) .. " (" .. tostring(desc) .. ")" ) return true -- Low risk fail - Can't do specific command, but has access to admin panel end end if not hasObjectPermissionTo ( player, "general.adminpanel" ) then local desc = table.concat({...}," ") local ipAddress = getPlayerIP(client or player) outputDebugString( "Admin security - Client without admin panel rights trigged an admin panel event. " .. tostring(ipAddress) .. " (" .. tostring(desc) .. ")", 2 ) return true -- High risk fail - No access to admin panel end end return false end please somebody help me im so confused edit: only thing that could be cause of this error would be this -- one tiny part of code if exports.security:cIsPlayerBanned(player,getPlayerSerial(player)) then setElementData(player,"player.state","hellbanned") but not sure why is this making the client not validated?
  15. hello guys i am not really experienced in tables, i'm still learning how they work, how to use/read whatever them and so on anyway let's say instead of default ban system i have made "hell" however i am not sure how to check is player's serial in this table hellList = { -- stars were put for privacy reasons {"***569FE453BD4260ECAB1BA18F382A2"}, {"***C4B55138CDE1251CC684759FB23F2"}, {"***0FD3104DD5F1768A20CA2E6C8AEA3"}, {"***DEF127AD04771C1CB847F0B480BE3"}, {"***E4510F78C3E0AB1474292DACAADC4"}, {"***24608511608C41E9D94A3D4E7F742"}, {"***02F041B50CC509B1CC9EEA81F6EA2"}, {"***96EEFFA5FE6B5E9A826ABF4A25584"}, {"***790600040ABF44115F80E117841E4"}, {"***49AD57FD37519BBA9A1DADD168D12"} } function cIsPlayerBanned(noob,serial) if not noob then return end if not serial then return end for i,serials in ipairs(hellList) do if serials[getPlayerSerial(noob)] then return outputDebugString("player is banned") true else return outputDebugString("player aint banned") false end end end few notes: - this is client sided - using this as exported function this simply doesnt work and i dont know how to make it work please somebody, help me
  16. huh? you can clearly see an easy example of what i tried to do in lua code there see? and simply doesnt work means that it doesnt give any error and returns true like it had done its work (function fadeCamera) but it didnt do anything
  17. anyone knows why isnt this working for me?should i update my server to its latest nightly?i tried everythign on client side to do it and it doesnt work even tho its result returns 'true'
  18. whenever i try to use fadeCamera (only tried client sided for now) it just doesnt work i have tried switching first true or false argument 100 times and second argument of time 1239121233019 times tried changing it but it just simply doesnt work not even this easy exmaple works client sided fadeCamera(true,0.5) no debugscript 3 errors please help
  19. why dont you guys continue this spam over group conversation or similar? i bet half of you started using/already used computer(s) or anything similar when u were 12 as well. also whether he's 12 or not, making fun of someone is immature and mean and not nice.
  20. what kind of moderator?where?
  21. I did not understand your one is more smoother,colorish,doesnt have that black ugly rectangle around health and armor bars get it now?
  22. report it at bugs.mtasa.com
  23. most easiest and effective way would be this dxDrawImage (655, 25, 113, 122, "timer.png",rot,0,0, getTickCount/20 % 360)
×
×
  • Create New...