Jump to content

undefined

Members
  • Posts

    500
  • Joined

  • Last visited

Everything posted by undefined

  1. undefined

    hide hud

    local hudTable = { "radar", "ammo", "weapon", "area_name", "wanted", "money", "health", "clock", "vehicle_name" } function hideHUD(enable) for _, hud in ipairs(hudTable) do showPlayerHudComponent(hud, enable) end end addEventHandler("onClientResourceStart", resourceRoot, function() hideHUD(false) end) addEventHandler("onClientPlayerSpawn", getLocalPlayer(), function() hideHUD(false) end) addEventHandler("onClientResourceStop", resourceRoot, function() hideHUD(true) end)
  2. undefined

    Hydra timer

    Client: timer = {} addEventHandler("onClientProjectileCreation", root, function(creator) local vehicle = getPedOccupiedVehicle(creator) if vehicle and getElementModel(vehicle) == 520 then if setElementData(creator, "anti repeater", true) then triggerServerEvent("toggle_control", creator, false) timer[creator] = setTimer( function() triggerServerEvent("toggle_control", creator, true) setElementData(creator, "anti repeater", false) end, 5000, 1 ) end end end) Server addEvent("toggle_control", true) addEventHandler("toggle_control", root, function(enabled) toggleControl(source, "vehicle_fire", enabled) end)
  3. "mta_mysql.dll" /> "sha.dll" /> "ml_sockets.dll" /> "sa_sql" startup="1" /> "sa_core" startup="1" protected="0" /> "sa_accounts" startup="1" protected="0" /> "sa_achi" startup="1" protected="0" /> "sa_ad" startup="1" protected="0" /> "sa_admin" startup="1" protected="0" /> "sa_anims" startup="1" protected="0" /> "sa_anticheat-system" startup="1" protected="0" /> "sa_bank" startup="1" protected="0" /> "sa_bankmap" startup="1" protected="0" /> "sa_blur" startup="1" protected="0" /> "sa_bone_attach" startup="1" protected="0" /> "sa_box" startup="1" protected="0" /> "sa_bw" startup="1" protected="0" /> "sa_cache" startup="1" protected="0" /> "sa_carshop" startup="1" protected="0" /> "sa_charData" startup="1" protected="0" /> "sa_charDataBase" startup="1" protected="0" /> "sa_charID" startup="1" protected="0" /> "sa_chat" startup="1" protected="0" /> "sa_dashboard" startup="1" protected="0" /> "sa_disco" startup="1" protected="0" /> "sa_documents" startup="1" protected="0" /> "sa_elevators" startup="1" protected="0" /> "sa_engine" startup="1" protected="0" /> "sa_fightstyle" startup="1" protected="0" /> "sa_flappybirds" startup="1" protected="0" /> "sa_freecam" startup="1" protected="0" /> "sa_freecam-tv" startup="1" protected="0" /> "sa_fuel" startup="1" protected="0" /> "sa_groups" startup="1" protected="0" /> "sa_groupsscripting" startup="1" protected="0" /> "sa_heli" startup="1" protected="0" /> "sa_help" startup="1" protected="0" /> "sa_hud" startup="1" protected="0" /> "sa_interiorsystem" startup="1" protected="0" /> "sa_itemsysten" startup="1" protected="0" /> "sa_jobs" startup="1" protected="0" /> "sa_journals" startup="1" protected="0" /> "sa_kezdes" startup="1" protected="0" /> "sa_kreszmap" startup="1" protected="0" /> "sa_kresztablak" startup="1" protected="0" /> "sa_language" startup="1" protected="0" /> "sa_licenses" startup="1" protected="0" /> "sa_loader" startup="1" protected="0" /> "sa_lspd-system" startup="1" protected="0" /> "sa_main" startup="1" protected="0" /> "sa_mechanic" startup="1" protected="0" /> "sa_minimap" startup="1" protected="0" /> "sa_nicknames" startup="1" protected="0" /> "sa_nightshader" startup="1" protected="0" /> "sa_parachute" startup="1" protected="0" /> "sa_ped" startup="1" protected="0" /> "sa_phone" startup="1" protected="0" /> "sa_playereffect" startup="1" protected="0" /> "sa_pool" startup="1" protected="0" /> "sa_pos" startup="1" protected="0" /> "sa_premium" startup="1" protected="0" /> "sa_punishment" startup="1" protected="0" /> "sa_radar" startup="1" protected="0" /> "sa_radio" startup="1" protected="0" /> "sa_realistictrain" startup="1" protected="0" /> "sa_saveVeh" startup="1" protected="0" /> "sa_saveChar" startup="1" protected="0" /> "sa_Score" startup="1" protected="0" /> "sa_social" startup="1" protected="0" /> "sa_speedo" startup="1" protected="0" /> "sa_szemetszedes" startup="1" protected="0" /> "sa_tabla" startup="1" protected="0" /> "sa_tuning" startup="1" protected="0" /> "sa_vehicle" startup="1" protected="0" /> "sa_vehicle-system" startup="1" protected="0" /> "sa_vehInteriors" startup="1" protected="0" /> "sa_vonat" startup="1" protected="0" /> "sa_walking" startup="1" protected="0" /> "sa_water" startup="1" protected="0" /> "sa_weapon" startup="1" protected="0" /> "sa_weather-system" startup="1" protected="0" />
  4. It's my script. I want to delete last version. Only last version (1.0.3) https://community.multitheftauto.com/index.php?p= ... s&id=12590 DONE
  5. Hi guys. I create new script for me but I decided to not use and I share it now. I want to only get your comments. You can edit some options in "options.lua". These; - Language (English and Turkish)(Current Language is Turkish)(You can add new language) - Theme Color - Effect Speed - Sound/Song - Font - postGUI - Chat Box - Radar - Maximum and Minimum Number of Characters - Options of ASCII - Use of Background Image - Camera's Position - Auto Login After Registration Press here for download it. Screenshots:
  6. Sure, but it is useless.
  7. I'm use this function to draw text outline. But it's use %13 CPU. I think it's so big for only draw outline. How can i decrease it? function tocolorToRGBA(color) return bitExtract(color, 0, 8 ), bitExtract(color, 8, 8 ), bitExtract(color, 16, 8 ), bitExtract(color, 24, 8 ) end local _dxDrawText = dxDrawText function dxDrawText(...) local args = {...} args[4] = args[2] + args[4] args[5] = args[3] + args[5] return _dxDrawText(unpack(args)) end function dxDrawTextOutline(...) local args = {...} local _, startX, startY = unpack(args) local color = args[6] local _,_,_,a = tocolorToRGBA(color) args[6] = tocolor(0,0,0,a) args[2], args[3] = startX-1, startY-1 dxDrawText(unpack(args)) args[2], args[3] = startX-1, startY+1 dxDrawText(unpack(args)) args[2], args[3] = startX+1, startY+1 dxDrawText(unpack(args)) args[2], args[3] = startX+1, startY-1 dxDrawText(unpack(args)) args[2], args[3], args[6] = startX, startY, color dxDrawText(unpack(args)) end addEventHandler("onClientRender", root, functon() dxDrawOutlineText(text, x, y, ...) end)
  8. I restarted my server and mine is working well. Thank you for the link Bonsai.
  9. Amazing... Which version are you using?
  10. It's not work. Give warning and wrong numbers. function tocolorToRGBA(color) return bitExtract(color, 0, 8 ), bitExtract(color, 8, 8 ), bitExtract(color, 16, 8 ), bitExtract(color, 24, 8 ) -- Line 61 end local r,g,b,a = tocolorToRGBA(tocolor(255,255,255,255)) outputChatBox(r) -- Return 3 outputChatBox(g) -- Return 241 outputChatBox(b) -- Return 119 outputChatBox(a) -- Return 1
  11. tocolor(255, 255, 46, 220) -- Return -587202770 How can I get RGBA from this number? (-587202770)
  12. But it is work. The first line check column result. If the column isn't exists it give warning and result is nil. So, it's work but only give warning if the column is not exists. Have you idea for check if column exists or not? If yes, can you help me? thx
  13. if not dbPoll(dbQuery(database, "SELECT column_name FROM table_name"), -1) then dbExec(database, "ALTER TABLE table_name ADD column_name data_type DEFAULT "..value) end I'm solved my problem with this code. It's add new column if the column not exists but it's give warning while adding column. Eventually it work! If you have not given warning code, I'll wait!
  14. This code create column if the column is already exists. But I want to create column if not exists. How can i fix it? Edit: I tryed these but these give syntax error. dbExec(database, "ALTER TABLE IF NOT EXISTS table_name ADD column_name data_type DEFAULT "..value) dbExec(database, "ALTER TABLE table_name ADD IF NOT EXISTS column_name data_type DEFAULT "..value)
  15. dbExec(database, "ALTER TABLE table_name ADD column_name data_type DEFAULT "..value) Like this?
  16. Hi guys. I'm use it for create new column. But i have a problem. How can i set column data value when the column created? My code: dbExec(database, "ALTER TABLE table_name ADD column_name data_type") Thanks
  17. Solved! Hi guys. I'm work on save system. I need loadstring function for this. My Code: Removed Error and Warnings Removed What is the problem? How can i fix it? Thx
  18. I solved it with xmlLoadFile. Why anyone didn't say this function? Nevertheless thanks for your helping.
  19. I already finished MGM base -,-. My problem is only to load map. And, can i read map file while the resource stopping? If i can, can you give me method/function?
  20. I don't understand you Bonsai. Can you explain a bit?
  21. Up! I need start resouce for only a few players.
  22. I think, your English is poor. Please do not reply if you don't understand! My problem is too different.
  23. You are using onClientRender and put a parameter in function. LOL! Please look onClientRender event. This event isn't have any parameters. You can use it: (If you set wins data) local kazanma = "Maps Win:"..tostring(getElementData(playerElement --[[if you want to local player, use localPlayer]], "wins"))
×
×
  • Create New...