Jump to content

Search the Community

Showing results for tags 'check'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 20 results

  1. I would like to ask where I can find a guide on: createElement, ElementData, Shaders etc. I need it because soon I will be making radar and inventory system. It would be nice if you would share your knowledge on the things I gave
  2. Hi Please i need function if checkbox checked txd will be remplaced if unchek Return Normal
  3. hello, I am trying to make a script that stores armor if it's undamaged but i got some warnings in the line 10 in the client side here is the script ,it's very simple --Client Side function storeArmor ( ) local armor = getPedArmor( player ) if ( armor == 100 ) then return function () triggerServerEvent("setdaarmor",true) outputChatBox( "Your armor got stored",255,255,255,true ) end end end addCommandHandler ( "storearmor", showArmor ) -------------------------------------------------------------------------- addEven
  4. i want to add afk check to my nametag, but i dont know how i tried this, but doesn't working --server function checkAFKPlayers() for index, thePlayer in ipairs(getElementsByType("player")) do if (getPlayerIdleTime(thePlayer) > 300000) then AFKCheck = "AFK" end end end setTimer(checkAFKPlayers, 30000, 0) --client (only the two line) local AFKCheck = {} dxDrawColorText ("#00BAFF" .. getPlayerName(player) .. " (" .. AFKState .. ")", sx-w, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), player ~= g_Me and textscale*NAMETA
  5. How to destroy a marker? I did not find any function to do this. i use destroyElement(markerName)
  6. hello i was making a script which is depending on the rotation but i was trying to rotate it when i press a button the full script is to create a minigun and attach it to the player's body and allow him to rotate the weapon without aiming it. function createMinigunWeapon() -- Create the weapon 1 meter above the player local x, y, z = getElementPosition(getLocalPlayer()) local weapon = createWeapon("minigun", x, y, z + 5) local rotX, rotY, rotZ = getElementRotation(weapon) bindKey("num_6","down", function() setElementRotation(weapon,0,0,rotZ+10) end )
  7. hello i was working on a small script which attach the star icon if the player is wanted but i got a debug output it said that there is a bug in the compare in line #3 here is the script ,i think i should change the Event "onResourceStart" function wanted() local wanted = getPlayerWantedLevel(player) if ( wanted > 0 ) then x, y, z = getElementPosition(player) i = getElementInterior(player) d = getElementDimension(player) wantedpickup = createObject( 1247, x, y, z+1, i, d ) attachElements( wanted , player ) end end addEventHandler("onResourceStart",root,wanted) also i had anther
  8. hi ,i have scripted a gate depending on account name , but i have started it ,it creates the marker and the object but the object isn't moving door = createObject ( 3089, 2004.5 , -1280 , 36.900001525879 , 0, 0, 0 ) marker = createMarker ( 2005.5 , -1280 , 35.900001525879 , 'cylinder', 1, 0, 0, 0, 255 ) -- after creating function openForProMax() local thePlayer = getAccountPlayer ( promax ) -- get the client attached to the account if ( getElementType ( thePlayer ) == "player" ) then moveObject ( door,2000, 2004.5 , -1280 , 30.900001525879, 0, 0, 0 ) else return e
  9. hello, i am promax and i am scripting disable killing between two teams ( Military , Police ) ,i have tried to make it but i have failed 100% :3 ,i just knew the functions from an ex post ,but it wasn't useful that much but it was maded by Iprestege (Fahad) he helped me lil a bit ,also taught me some new functions and i appreciate what he have done for me, the script that he gave me --this was my first try to make these teams can't get killed. local team = getTeamFromName (getLocalPlayer()) addEventHandler ( 'onClientPlayerDamage',root, function () if ( team == "Unemploy
  10. hello,today i had to learn how make the freeroam (F1) only for ACL admin , but it output a debug notice Error: freeroam\fr_client.lua:1596: attempt to call global 'getPlayerAccount' (a nil value) addEventHandler('onClientResourceStart', g_ResRoot, function() local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow)
  11. hey i have a script which makes the slots of the players half than the current local curMaxPlayers = getMaxPlayers() local newMaxPlayers = math.ceil( curMaxPlayers / 2 ) setMaxPlayers( newMaxPlayers ) and i tried to make it double the slots by changing "/" into "*" but it failed can someone tell me what to do,and please don't tell me to change the config i am not that silly :3
  12. Hey i make this script when you have low fuel to start a sound alarm but i don't know how to make to check this when you are in helicopter : function helicopter () if ( isPedInVehicle ( localPlayer ) == false ) then return false end ---------------------------Parts----------------------- local veh = getPedOccupiedVehicle(getLocalPlayer()); local maxfuel = ---myStuff--; local fuel = ---myStuff----------; if (isElement(veh) and getElementModel(veh) == 487 or 497 or 417 or 563 ) then if fuel <= 5 then sound = playSound("sound/beep.mp3" , true) setSoundVolume(sound, 0.2)
  13. hello i have a script which is depending on some kind of vip system but it's bugged because there is something wrong in the compare in the line "7" which is a laser script. local laserColor = {[2]={255, 0, 0}, [3]={255, 100, 0}} addCommandHandler("laser", function (thePlayer) if not exports["(T-RPG)VIP"]:isPlayerVIP(getAccountName(getPlayerAccount(thePlayer))) then return end local vip = exports["(T-RPG)VIP"]:isPlayerVIP(thePlayer) if vip > 1 then return end if getElementData(thePlayer, "laser.on") then lState="Disabled" r,g,b=unpack(laserColor[vip]) setElementData(thePl
  14. addEvent('showAssistanceMsg', true) addEventHandler('showAssistanceMsg', root, function(name, location) theAlpha = 255 rand = math.random(-50, 50) function showMSG() if theAlpha > 0 then theAlpha = theAlpha - 0.3 dxDrawText("(..name..)" Requesting Medical Assistance in '(..location..)',x(914.0),y(453.0+rand),x(1322.0),y(504.0),tocolor(0,205,0,theAlpha),x(1.3),"default-bold","center","center",false,false,false) else removeEventHandler('onClientRender', root, showMSG) end end
  15. hello i have created a simple staff tag but i am using dxdrawtext to make it but it's bugged .it includes every time to have this tag when i am in the criminal team it draws the text. function renderStaffTag() local streamedPlayers = getElementsByType ("player", root, true) if getPlayerTeam(p) or getPlayerTeam(p) ~= getTeamFromName("Staff") then if streamedPlayers and #streamedPlayers ~= 0 then local lpos = {getElementPosition(localPlayer)} for _,p in ipairs (streamedPlayers) do if p and isElement (p) then local ppos = {getElementPosition(p)} if getDistanceBetweenPoints
  16. i have scripting a illegal weapon factory marker but i want to show a loading progress while creating a weapon ,i have scripted it and i have checked the debugscript log and there isn't something wrong ,also i wanna hide the hud and the radar --client cwm = createMarker( 1983.65601, -2413.86963, 12.54688, "cylinder", 2, 150, 0, 75, 255 ) --this creates the marker GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.2726,0.3275,0.3186,0.4537,"(Weapon Factory)",true) guiSetVisible ( GUIEditor_Window[1],false )
  17. hi all i have made a simple script but i have added a part to the script which allows only a team to use this marker but i can't see the marker ,here you are the script : -- Server Side local criminalsTeam = createTeam("Criminals",150,0,0) local newVehicle = { } local myBlip = { } local marker = { } addEvent('MyEvent',true) addEventHandler('MyEvent',root, function ( ) if newVehicle [ source ] and isElement ( newVehicle [ source ] ) then return false end newVehicle [ source ] = createVehicle ( 413,1603.34717,-1459.95898,13.68424 ) warpPedInto
  18. i want to set the taser script for the police team --client local cFunc = {} local cSetting = {} cSetting["shots"] = {} cSetting["shot_calcs"] = {} local last_shot = 1 -- FUNCTIONS -- cFunc["render_shots"] = function() for index, tbl in pairs(cSetting["shots"]) do dxDraw:OedLine3D(tbl[1], tbl[2], tbl[3], tbl[4], tbl[5], tbl[6], tocolor(0, 255, 0)) end end cFunc["draw_shot"] = function(x1, y1, z1, x2, y2, z2) table.insert(cSetting["shots"], last_shot, {x1, y1, z1, x2, y2, z2}) -- SHOT CALCULATING local lastx, lasty, lastz = x1, y1, z1 local dis = getDistanceBetweenPoints3D(x1,
  19. Hello I have made a script but it's not done yet so i need help with the markers they aren't getting viewed in game i think i have made the part of the markers correctly please check it, marker = createMarker(1615.48865, -1506.98303, 12.20866,"cylinder", 2, 255, 0, 0, 255) () getRootElement GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(0.5399,0.6794,0.4063,0.456,"Drug Delivery System ",true) GUIEditor_Button[1] = guiCreateButton(317,345,68,40,"Accept",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(245,346,68,39,"Ca
  20. Hello , as the owner of Funny freeroam i would like to introduce you why did i have created this server,and the list of free roles that we need , Indroduction: Free Staff Places: Thank you for reading
×
×
  • Create New...