ramzi
Members-
Posts
90 -
Joined
-
Last visited
Everything posted by ramzi
-
sry but some error appeared and the vehicles didnt respawn: lua codes line 27: local vehicle = createVehicle(tonumber(model),x,y,z,0,0,rot) with the lua u gave me: local x,y,z = getElementPosition(veh) local c1,c2,c3,c4 = getVehicleColor(veh) local upgrades = getVehicleUpgrades(veh) local mode = getElementModel(veh) error msg: [2014-12-20 16:58:12] WARNING: lock\vehicles_server.lua:27: Bad argument @ 'createVehicle' [Expected vector3 at argument 2, got boolean] should i replace createVehicle with createElement?
-
i tried to do this: local model, x, y, z, rot, color, upgrades = tonumber("getvehicleModel"), tonumber("getvehicleposX"), tonumber("getvehicleposY"), tonumber(getvehicle"posZ"), tonumber(getvehicle["rot"]), tostring("getvehiclecolor"]), tostring(getvehicleupgrades"])
-
still have a problem,vehicles didnt respawn. error msg: [2015-01-01 15:05:01] ERROR: lock\vehicles_server.lua:50: attempt to index local 'veh' (a nil value) lua line 50: local model, x, y, z, rot, color, upgrades = tonumber(veh["vehicleModel"]), tonumber(veh["posX"]), tonumber(veh["posY"]), tonumber(veh["posZ"]), tonumber(veh["rot"]), tostring(veh["color"]), tostring(veh["upgrades"])
-
so i replace the whole code with this?
-
Note:it happens when i create more than 1 vehicle
-
guys i have a script works fine which is used to lock vehicles,when i create 1 vehicle it works fine,but i create too many vehicles,all the vehicles respawn up of each other(in 1 dimension) and this is the error msg: [2015-01-01 12:20:14] WARNING:lock\vehicles_server.lua:195: Bad argument @ 'respawnVehicle' [Expected element at argument 1] and here is the lua line 195: function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) function checkVehicles ( theVehicle ) local driver = getVehicleOccupant ( theVehicle ) if driver == false then respawnVehicle ( theVehicle ) end end
-
armorTeams = {["Squads"] = true, ["Admins"] = true, ["Freedom Revolutionary Front"] = true, ["Desert Force"] = true, ["The Punishers"] = true} local isMayhemEnabled = false local spawnFreeGroups = "fd,fdn,nf,nfr,unionsoldier,confedsoldier,sahpmember,sahper,fbcmember,usocmember,eimember" local free1 = split(spawnFreeGroups, ",") local free2 = {} for i,v in ipairs(free1) do free2[v] = true end function initializeSpawns (resourceStarted) if getResourceName(resourceStarted) == "SAXGspawn" or getResourceName(resourceStarted) == "SAXGspawnmap" then startResource(getResourceFromName("SAXGspawnmap")) local xml = xmlLoadFile(":SAXGspawnmap/spawns.xml") -- open the XML file local cityNodes = xmlNodeGetChildren(xml) -- get all child nodes of the root node () local cities = {} -- create a new global variable to store the welcome messages for i,node in ipairs(cityNodes) do local classnodes = xmlNodeGetChildren(node) for i2,node2 in ipairs(classnodes) do local name = xmlNodeGetAttribute(node2, "name") local r = xmlNodeGetAttribute(node2, "r") local g = xmlNodeGetAttribute(node2, "g") local b = xmlNodeGetAttribute(node2, "b") if not getTeamFromName(name) then createTeam( name , r , g , b) end end end xmlUnloadFile(xml) end end addEventHandler("onResourceStart", root, initializeSpawns) function logAllOut() local players = getElementsByType ( "player" ) for k, player in ipairs(players) do account = getPlayerAccount(player) if not isGuestAccount(account) then logOut(player) -- Log them out. end end addEventHandler("onPlayerLogout",getRootElement(),loggedOut) end addEventHandler("onResourceStart", resourceRoot, logAllOut) function playerSpawn (spawnX, spawnY, spawnZ, team, permission, skin, weapons, player, skinName, sR, sG, sB, rot, dim, int) local playerAccount = getPlayerAccount(player) local hasPermission = false if getAccountData(playerAccount, "override") then hasPermission = true else if permission:lower() == "none" then hasPermission = true end local outerPerm = split(permission, ";") or {permission} for i,v in ipairs(outerPerm) do local permArray = split(v, ",") if #permArray == 2 then local permType = permArray[1] local permTo = permArray[2] if permType:lower() == "group" then if exports.SAXGacl:isPlayerInGroup(player, permTo) then hasPermission = true end if isMayhemEnabled and free2[permTo] then hasPermission = true end elseif permType:lower() == "gang" then local gang = getAccountData(playerAccount, "gang") if gang and gang:lower() == permTo:lower() then hasPermission = true end end end end end if hasPermission then local spawnTeam = getTeamFromName(team) if not rot then rot = 0 end spawnPlayer (player, spawnX , spawnY, spawnZ + 1, rot, skin, 0, 0, spawnTeam) setElementDimension(player, dim or 0) setElementInterior(player, int or 0) fadeCamera (player, true) setCameraInterior (player, int or 0 ) setCameraTarget (player, player) local tR , tG , tB = getTeamColor(spawnTeam) local r = sR or tR local g = sG or tG local b = sB or tB local blip = createBlipAttachedTo(player, 0, 2, r, g, b, 255, 0, 300, getRootElement()) setElementVisibleTo(blip, player, false) setPlayerNametagColor(player, r, g, b) if(weapons) then local weps = split(weapons, ",") for i, node in ipairs(weps) do --outputConsole(node) local wepinfo = split(node, ".") local wepid = wepinfo[1] --outputConsole(wepid) local wepammo = wepinfo[2] --outputConsole(wepammo) giveWeapon ( player, wepid, wepammo ) end end setAccountData(playerAccount, "lastSpawnPerm", permission) setElementData(player, "class", skinName) if getResourceState(getResourceFromName("SAXGhud")) == "running" then showPlayerHudComponent(player, "all", false) showPlayerHudComponent(player, "crosshair", true) end if armorTeams[team] then setPedArmor(player, 100) end triggerClientEvent(player, "onSpawnSuccessful", getRootElement()) else triggerClientEvent(player, "onSpawnError", getRootElement() , "You are not in this Gang/Squad/Company") end end addEvent("onPlayerSpawnButton", true) addEventHandler("onPlayerSpawnButton", getRootElement(), playerSpawn) function playerDespawn() local player = source for i,v in ipairs(getAttachedElements(player)) do if getElementType(v) == "blip" and getElementParent(getElementParent(v)) == resourceRoot then destroyElement(v) end end end addEventHandler("onPlayerWasted", getRootElement(), playerDespawn) addEventHandler("onPlayerQuit", getRootElement(), playerDespawn) function saveProperty(a, b, c, playah) local player = playah or source local playeraccount = getPlayerAccount(player) if not isPedDead(player) then local x, y, z = getElementPosition(player) local rot = getPedRotation(player) setAccountData(playeraccount, "x", x) setAccountData(playeraccount, "y", y) setAccountData(playeraccount, "z", z) setAccountData(playeraccount, "rot", rot) local skin = getElementModel(player) setAccountData(playeraccount, "skin", skin) local team = getTeamName(getPlayerTeam(player)) setAccountData(playeraccount, "team", team) local weaponsarray = {} for i=1, 12 do if(getPedWeapon(player, i) ~= 0 and getPedTotalAmmo(player, i) > 0) then table.insert(weaponsarray, getPedWeapon(player, i) .. "." .. getPedTotalAmmo(player, i)) end end local weaponstring = table.concat(weaponsarray,",") setAccountData(playeraccount, "weapons", weaponstring) setAccountData(playeraccount, "aliveonquit", true) setAccountData(playeraccount, "class", getElementData(player, "class")) local r,g,b = getPlayerNametagColor(player) setAccountData(playeraccount, "r", r) setAccountData(playeraccount, "g", g) setAccountData(playeraccount, "b", b) local dimension = getElementDimension(player) local interior = getElementInterior(player) setAccountData(playeraccount, "interior", interior) setAccountData(playeraccount, "dimension", dimension) else setAccountData(playeraccount, "aliveonquit", false) setAccountData(playeraccount, "x", nil) setAccountData(playeraccount, "y", nil) setAccountData(playeraccount, "z", nil) setAccountData(playeraccount, "permission", nil) setAccountData(playeraccount, "team", nil) setAccountData(playeraccount, "skin", nil) setAccountData(playeraccount, "weapons", nil) setAccountData(playeraccount, "class", nil) setAccountData(playeraccount, "r", nil) setAccountData(playeraccount, "g", nil) setAccountData(playeraccount, "b", nil) setAccountData(playeraccount, "rot", nil) setAccountData(playeraccount, "dimension", nil) setAccountData(playeraccount, "interior", nil) end end addEventHandler("onPlayerQuit", getRootElement(), saveProperty) function wasPlayerAlive() if getAccountData(getPlayerAccount(source), "aliveonquit") then --outputConsole("Seems like playah wus alive!") local playerAccount = getPlayerAccount(source) local x = getAccountData(playerAccount, "x") local y = getAccountData(playerAccount, "y") local z = getAccountData(playerAccount, "z") local rot = getAccountData(playerAccount, "rot") local team = getAccountData(playerAccount, "team") local permission = getAccountData(playerAccount, "lastSpawnPerm") local skin = getAccountData(playerAccount, "skin") local weps = getAccountData(playerAccount, "weapons") local skinName = getAccountData(playerAccount, "class") local r = getAccountData(playerAccount, "r") local g = getAccountData(playerAccount, "g") local b = getAccountData(playerAccount, "b") local dim = getAccountData(playerAccount, "dimension") local int = getAccountData(playerAccount, "interior") playerSpawn(x , y , z, team, permission, skin, weps, source, skinName, r, g, b, rot, dim, int) else showSpawnScreen(source) end end addEvent("wasPlayerAliveEvent", true) addEventHandler("wasPlayerAliveEvent", getRootElement(), wasPlayerAlive) function loggedOut() cancelEvent() outputChatBox("You can't log out!", source, 255, 0 ,0) end function stopdown() local players = getElementsByType("player") for i, player in ipairs(players) do saveProperty(nil, nil, nil, player) killPed(player) logOut(player) end end addEventHandler("onResourceStop", resourceRoot, stopdown) function showSpawnScreen(player) local account = getPlayerAccount(player) local houses = exports.SAXGhousing:getAccountHouses(account) triggerClientEvent(player, "showSpawn", player, houses) end addEventHandler("onPlayerWasted", root, function() showSpawnScreen(source) end) here it is
-
hi guys,i need some help over here,i started a script (spawn script) and the menu didnt show up. Error msg: [2014-12-31 12:58:47] ERROR: Client ([Ramzi) triggered serverside event requestServerInfo, but event is not added serverside
-
another errors: [2014-12-23 17:54:09] WARNING: RGlogin\spawn_server.lua:73: Bad argument @ 'getTeamFromName' [Expected string at argument 1, got boolean] [2014-12-23 17:54:09] WARNING: RGlogin\spawn_server.lua:81: Bad argument @ 'getTeamColor' [Expected team at argument 1, got boolean] [2014-12-23 17:54:09] WARNING: RGlogin\spawn_server.lua:99: Bad argument @ 'setPlayerNametagColor' [Expected number at argument 2, got nil] [2014-12-23 17:54:09] WARNING: RGlogin\spawn_server.lua:115: Bad argument @ 'getResourceState' [Expected resource-data at argument 1, got boolean]
-
Guys,i have bought this spawn menu but the scoreboard doesnt show teams,idk why...this is the error msg: [2014-12-23 11:52:57] WARNING: RGlogin\spawn_server.lua:81: Bad argument @ 'getTeamColor' [Expected team at argument 1, got boolean] [2014-12-23 11:52:57] WARNING: RGlogin\spawn_server.lua:85: Bad argument @ 'createBlipAttachedTo' [Expected number at argument 4, got boolean] [2014-12-23 11:52:57] WARNING: RGlogin\spawn_server.lua:86: Bad argument @ 'setElementVisibleTo' [Expected element at argument 1, got boolean] [2014-12-23 11:52:57] WARNING: RGlogin\spawn_server.lua:103: Bad argument @ 'getResourceState' [Expected resource-data at argument 1, got boolean] and this is the lua code: armorTeams = {["Admin"] = true,["Macedonian Gaming Event Menagers"] = true,["None"] = true,["Al Qeada"] = true,["S.W.A.T."] = true} local isMayhemEnabled = false local spawnFreeGroups = "fd,fdn,nf,nfr,unionsoldier,confedsoldier,sahpmember,sahper,fbcmember,usocmember,eimember" local free1 = split(spawnFreeGroups, ",") local free2 = {} for i,v in ipairs(free1) do free2[v] = true end function initializeSpawns (resourceStarted) if getResourceName(resourceStarted) == "MGlogin" or getResourceName(resourceStarted) == "SARGspawnmap" then startResource(getResourceFromName("MGspawnmap")) local xml = xmlLoadFile(":MGspawnmap/spawns.xml") -- open the XML file local cityNodes = xmlNodeGetChildren(xml) -- get all child nodes of the root node () local cities = {} -- create a new global variable to store the welcome messages for i,node in ipairs(cityNodes) do local classnodes = xmlNodeGetChildren(node) for i2,node2 in ipairs(classnodes) do local name = xmlNodeGetAttribute(node2, "name") local r = xmlNodeGetAttribute(node2, "r") local g = xmlNodeGetAttribute(node2, "g") local b = xmlNodeGetAttribute(node2, "b") if not getTeamFromName(name) then createTeam( name , r , g , b) end end end xmlUnloadFile(xml) end end addEventHandler("onResourceStart", root, initializeSpawns) function logAllOut() local players = getElementsByType ( "player" ) for k, player in ipairs(players) do account = getPlayerAccount(player) if not isGuestAccount(account) then logOut(player) -- Log them out. end end addEventHandler("onPlayerLogout",getRootElement(),loggedOut) end addEventHandler("onResourceStart", resourceRoot, logAllOut) function playerSpawn (spawnX, spawnY, spawnZ, team, permission, skin, weapons, player, skinName, sR, sG, sB, rot, dim, int) local playerAccount = getPlayerAccount(player) local hasPermission = false if getAccountData(playerAccount, "override") then hasPermission = true else if permission:lower() == "none" then hasPermission = true end local outerPerm = split(permission, ";") or {permission} for i,v in ipairs(outerPerm) do local permArray = split(v, ",") if #permArray == 2 then local permType = permArray[1] local permTo = permArray[2] if permType:lower() == "group" then if exports.MGacl:isPlayerInGroup(player, permTo) then hasPermission = true end if isMayhemEnabled and free2[permTo] then hasPermission = true end elseif permType:lower() == "gang" then local gang = getAccountData(playerAccount, "gang") if gang and gang:lower() == permTo:lower() then hasPermission = true end end end end end if hasPermission then local spawnTeam = getTeamFromName(team) if not rot then rot = 0 end spawnPlayer (player, spawnX , spawnY, spawnZ + 1, rot, skin, 0, 0, spawnTeam) setElementDimension(player, dim or 0) setElementInterior(player, int or 0) fadeCamera (player, true) setCameraInterior (player, int or 0 ) setCameraTarget (player, player) local tR , tG , tB = getTeamColor(spawnTeam) local r = sR or tR local g = sG or tG local b = sB or tB local blip = createBlipAttachedTo(player, 0, 2, r, g, b, 255, 0, 300, getRootElement()) setElementVisibleTo(blip, player, false) setPlayerNametagColor(player, r, g, b) if(weapons) then local weps = split(weapons, ",") for i, node in ipairs(weps) do --outputConsole(node) local wepinfo = split(node, ".") local wepid = wepinfo[1] --outputConsole(wepid) local wepammo = wepinfo[2] --outputConsole(wepammo) giveWeapon ( player, wepid, wepammo ) end end setAccountData(playerAccount, "lastSpawnPerm", permission) setElementData(player, "class", skinName) if getResourceState(getResourceFromName("MGpolice")) == "running" then showPlayerHudComponent(player, "crosshair", true) end if armorTeams[team] then setPedArmor(player, 100) end triggerClientEvent(player, "onSpawnSuccessful", getRootElement()) else triggerClientEvent(player, "onSpawnError", getRootElement() , "You are not in this Gang/Squad/Company") end end addEvent("onPlayerSpawnButton", true) addEventHandler("onPlayerSpawnButton", getRootElement(), playerSpawn) function playerDespawn() local player = source for i,v in ipairs(getAttachedElements(player)) do if getElementType(v) == "blip" and getElementParent(getElementParent(v)) == resourceRoot then destroyElement(v) end end end addEventHandler("onPlayerWasted", getRootElement(), playerDespawn) addEventHandler("onPlayerQuit", getRootElement(), playerDespawn) function saveProperty(a, b, c, playah) local player = playah or source local playeraccount = getPlayerAccount(player) if not isPedDead(player) then local x, y, z = getElementPosition(player) local rot = getPedRotation(player) setAccountData(playeraccount, "x", x) setAccountData(playeraccount, "y", y) setAccountData(playeraccount, "z", z) setAccountData(playeraccount, "rot", rot) local skin = getElementModel(player) setAccountData(playeraccount, "skin", skin) local team = getTeamName(getPlayerTeam(player)) setAccountData(playeraccount, "team", team) local weaponsarray = {} for i=1, 12 do if(getPedWeapon(player, i) ~= 0 and getPedTotalAmmo(player, i) > 0) then table.insert(weaponsarray, getPedWeapon(player, i) .. "." .. getPedTotalAmmo(player, i)) end end local weaponstring = table.concat(weaponsarray,",") setAccountData(playeraccount, "weapons", weaponstring) setAccountData(playeraccount, "aliveonquit", true) setAccountData(playeraccount, "class", getElementData(player, "class")) local r,g,b = getPlayerNametagColor(player) setAccountData(playeraccount, "r", r) setAccountData(playeraccount, "g", g) setAccountData(playeraccount, "b", b) local dimension = getElementDimension(player) local interior = getElementInterior(player) setAccountData(playeraccount, "interior", interior) setAccountData(playeraccount, "dimension", dimension) else setAccountData(playeraccount, "aliveonquit", false) setAccountData(playeraccount, "x", nil) setAccountData(playeraccount, "y", nil) setAccountData(playeraccount, "z", nil) setAccountData(playeraccount, "permission", nil) setAccountData(playeraccount, "team", nil) setAccountData(playeraccount, "skin", nil) setAccountData(playeraccount, "weapons", nil) setAccountData(playeraccount, "class", nil) setAccountData(playeraccount, "r", nil) setAccountData(playeraccount, "g", nil) setAccountData(playeraccount, "b", nil) setAccountData(playeraccount, "rot", nil) setAccountData(playeraccount, "dimension", nil) setAccountData(playeraccount, "interior", nil) end end addEventHandler("onPlayerQuit", getRootElement(), saveProperty) function wasPlayerAlive() if getAccountData(getPlayerAccount(source), "aliveonquit") then --outputConsole("Seems like playah wus alive!") local playerAccount = getPlayerAccount(source) local x = getAccountData(playerAccount, "x") local y = getAccountData(playerAccount, "y") local z = getAccountData(playerAccount, "z") local rot = getAccountData(playerAccount, "rot") local team = getAccountData(playerAccount, "team") local permission = getAccountData(playerAccount, "lastSpawnPerm") local skin = getAccountData(playerAccount, "skin") local weps = getAccountData(playerAccount, "weapons") local skinName = getAccountData(playerAccount, "class") local r = getAccountData(playerAccount, "r") local g = getAccountData(playerAccount, "g") local b = getAccountData(playerAccount, "b") local dim = getAccountData(playerAccount, "dimension") local int = getAccountData(playerAccount, "interior") playerSpawn(x , y , z, team, permission, skin, weps, source, skinName, r, g, b, rot, dim, int) else showSpawnScreen(source) end end addEvent("wasPlayerAliveEvent", true) addEventHandler("wasPlayerAliveEvent", getRootElement(), wasPlayerAlive) function loggedOut() cancelEvent() outputChatBox("You can't log out!", source, 255, 0 ,0) end function stopdown() local players = getElementsByType("player") for i, player in ipairs(players) do saveProperty(nil, nil, nil, player) killPed(player) logOut(player) end end addEventHandler("onResourceStop", resourceRoot, stopdown) function showSpawnScreen(player) local account = getPlayerAccount(player) local houses = exports.jhousing:getAccountHouses(account) triggerClientEvent(player, "showSpawn", player, houses) end addEventHandler("onPlayerWasted", root, function() showSpawnScreen(source) end)
-
oh,i fixed it,i just changed getPlayerName with get ClientName
-
well it worked fine thnx so much,but i still have a little problem with this error: ERROR: mil_protection\ad_base_s.lua:15: attempt to call global 'getPlayertName' (a nil value),chatbox doesnt appear.
-
guys i edited this script,it is (area51 protection)script,it was for skin 287 and i made it for team,but i had this problem! this is the error msg: [2014-12-22 18:13:30] WARNING: mil_protection\ad_base_s.lua:14: Bad argument @ 'getPlayerTeam' [Expected player at argument 1, got nil] [2014-12-22 18:13:30] WARNING: mil_protection\ad_base_s.lua:14: Bad argument @ 'getTeamName' [Expected team at argument 1, got boolean] and here is the code: g_base_col = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) createBlip ( 193.248, 1890.01, 17.234, 47 ) g_root = getRootElement () --rocketOne = createMarker ( -2931.5136, 454.4492, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker --rocketTwo = createMarker ( -2931.5932, 487.1994, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker function hit ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local className = "Delta Force" if ( getTeamName(getPlayerTeam(thePlayer)) == "Delta Force" ) then outputChatBox ( "Welcome, "..getPlayertName(pla).."!", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla).." has entered Restricted Area!", g_root, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) function leave ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local className = "Delta Force" if ( getTeamName(getPlayerTeam(thePlayer)) == "Delta Force" ) then outputChatBox ( "Good Bye!", pla, 0, 100, 0 ) else setElementData ( pla, "inRestrictedArea", "false" ) triggerClientEvent ( pla, "destroyTimers", g_root, pla ) outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) end end end end addEventHandler ( "onColShapeLeave", g_base_col, leave )
-
Hi guys,i have this gate code works fine but the gates open when i be far from them,how can i make the distance to open them so near?plz help me. gate1 = createObject (980, -13.60, 2067.30,19, 0,0,90 ) gatecol = createColCircle (-13.60, 2067.30,19,12.5,10 ) local className = "Army" function OpenGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then moveObject (gate1,2000,-13.60,2067.30, 24.799 ) end end addEventHandler( "onColShapeHit", gatecol, OpenGates ) function CloseGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then moveObject (gate1,2000,-13.60, 2067.30,19 ) end end addEventHandler( "onColShapeLeave", gatecol, CloseGates )
-
Sry guys but it stills not working...(i have copied it right).
-
Still not working:\ , it works with all weapons.
-
Guys,i have headshot script but it works with all weapons,how can i make it with sniper only???? addEvent "onPlayerHeadshot" addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss) if bodypart == 9 else if weapon == 34 then local result = triggerEvent("onPlayerHeadshot", source, attacker, weapon, loss) if result == true then killPed(source, attacker, weapon, bodypart) end end end end )
-
Oh thank you so much!,i found that my acl.xml file is empty,so i got another one,thnx again!
-
This is not a forum for requests(Never mind demanding it!) https://wiki.multitheftauto.com/wiki/Main_Page Perhaps this can help too, gotta try make it yourself. We can help with errors and stuff but you must atleast give it ago. function destroyBlipsAttachedTo( player ) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end this script works fine but there is allitle problem ,player name still showing on,wht should i do to hide the name?
-
dude just give me the full code,i dont know how to script
-
but i want a script that hides ur blip with a command,thats what i want