MOGA672002 Posted April 20, 2018 Share Posted April 20, 2018 I need mod that making all blips small on the map as all blis are very big and hide the map https://imgur.com/a/5aW7SZA Link to comment
Dimos7 Posted April 20, 2018 Share Posted April 20, 2018 check the size of blips on your script and make sure Link to comment
LilDawage Posted April 20, 2018 Share Posted April 20, 2018 go to your resource >>>>> Burger or restaurant and Feul system and Gym and modshop ......... and Fix the size of Blips Link to comment
MOGA672002 Posted April 20, 2018 Author Share Posted April 20, 2018 which line or which word is meaning the size ? function createMarkers() local file = xmlLoadFile("locations.xml") for index, value in pairs(xmlNodeGetChildren(file)) do local m = split(xmlNodeGetAttribute(value, "pos"), string.byte(",")) marker = createMarker(m[1], m[2], m[3], "cylinder", 4, 181, 2, 32, 180) blip = createBlipAttachedTo(marker, 63) setBlipVisibleDistance(blip, 300) addEventHandler("onMarkerHit", marker, enteredPaySpray) end end addEventHandler("onResourceStart", resourceRoot, createMarkers) function enteredPaySpray(element) if (element and isElement(element) and getElementType(element) == "vehicle") then local plr = getVehicleController(element) if (isElement(plr)) then if (getElementHealth(element) >= 999) then exports.CRGtexts:output("Your vehicle does already have max health", plr, 255, 0, 0) return end local price = math.floor((1000 - getElementHealth(element)) / 2.3) if (getPlayerMoney(plr) <= price) then local missing = math.floor(price - getPlayerMoney(plr)) exports.CRGtexts:output("You are missing $"..missing.." for a repair", plr, 255, 0, 0) return end setElementHealth(element, 1000) fixVehicle(element, 1000) setElementFrozen(element, true) takePlayerMoney(plr, price) fadeCamera(plr, false) setTimer(finishRepair, 2000, 1, plr, element, price) end end end function finishRepair(plr, veh, cash) if (isElement(plr) and isElement(veh)) then fadeCamera(plr, true) setElementFrozen(veh, false) exports.CRGtexts:output("You have succesfully repaired your vehicle for $"..cash, plr, 0, 255, 0) exports.CRGtrivia:sendMessage( "Your vehicle was fixed!", plr, 0, 255, 0 ) end end Link to comment
LilDawage Posted April 20, 2018 Share Posted April 20, 2018 28 minutes ago, MOGA672002 said: which line or which word is meaning the size ? function createMarkers() local file = xmlLoadFile("locations.xml") for index, value in pairs(xmlNodeGetChildren(file)) do local m = split(xmlNodeGetAttribute(value, "pos"), string.byte(",")) marker = createMarker(m[1], m[2], m[3], "cylinder", 4, 181, 2, 32, 180) blip = createBlipAttachedTo(marker, 63) setBlipVisibleDistance(blip, 300) addEventHandler("onMarkerHit", marker, enteredPaySpray) end end addEventHandler("onResourceStart", resourceRoot, createMarkers) function enteredPaySpray(element) if (element and isElement(element) and getElementType(element) == "vehicle") then local plr = getVehicleController(element) if (isElement(plr)) then if (getElementHealth(element) >= 999) then exports.CRGtexts:output("Your vehicle does already have max health", plr, 255, 0, 0) return end local price = math.floor((1000 - getElementHealth(element)) / 2.3) if (getPlayerMoney(plr) <= price) then local missing = math.floor(price - getPlayerMoney(plr)) exports.CRGtexts:output("You are missing $"..missing.." for a repair", plr, 255, 0, 0) return end setElementHealth(element, 1000) fixVehicle(element, 1000) setElementFrozen(element, true) takePlayerMoney(plr, price) fadeCamera(plr, false) setTimer(finishRepair, 2000, 1, plr, element, price) end end end function finishRepair(plr, veh, cash) if (isElement(plr) and isElement(veh)) then fadeCamera(plr, true) setElementFrozen(veh, false) exports.CRGtexts:output("You have succesfully repaired your vehicle for $"..cash, plr, 0, 255, 0) exports.CRGtrivia:sendMessage( "Your vehicle was fixed!", plr, 0, 255, 0 ) end end blip = createBlipAttachedTo(marker, 63) ---------------here Put the size like >>>>> blip = createBlipAttachedTo(marker,[ 63,2])------ 2 = size Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now