nk0zkh0z Posted May 25, 2015 Share Posted May 25, 2015 Please help me, it does not work ( I want to change blip on the map with my images. ( local shit = exports.customblips:createCustomBlip ( 2290.2392578125, 2430.31640625, 16, 16, "img/iconlvpd.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) local shit = exports.customblips:createCustomBlip ( 2474.3134765625, 1024.2529296875, 16, 16, "img/iconbank.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) local shit = exports.customblips:createCustomBlip ( 2322.4189453125, 549.408203125, 16, 16, "img/iconbencang.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) local shit = exports.customblips:createCustomBlip ( 1072.3876953125, 2310.4091796875, 16, 16, "img/iconrrr.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) local shit = exports.customblips:createCustomBlip ( 21044.53125, 1015.2919921875, 16, 16, "img/iconthuvien.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) local shit = exports.customblips:createCustomBlip ( 1675.0947265625, 1447.7275390625, 16, 16, "img/iconsanbay.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) local shit = exports.customblips:createCustomBlip ( 2462.111328125, 2243.763671875 ,16, 16, "img/iconjobphongvien.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) local shit = exports.customblips:createCustomBlip ( 1756.859375, 2077.61328125, 16, 16, "img/iconsocuuhoa.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) local shit = exports.customblips:createCustomBlip ( 2330.890625, 2165.7734375, 16, 16, "img/iconcasino.png" ) exports.customblips:setCustomBlipStreamRadius(shit, 100) Link to comment
mommytellme Posted May 25, 2015 Share Posted May 25, 2015 any errors in /debugscript 3? Link to comment
nk0zkh0z Posted May 27, 2015 Author Share Posted May 27, 2015 any errors in /debugscript 3? I do not understand you Link to comment
SpoC^ Posted May 27, 2015 Share Posted May 27, 2015 Type /debugscript 3 Errors ? try with one --Client addEventHandler ( "onClientResourceStart" , getResourceRootElement ( getThisResource ( ) ) , function ( ) exports.customblips:createCustomBlip ( 2290.2392578125, 2430.31640625, 16, 16 , "img/iconlvpd.png" ) end ) Link to comment
nk0zkh0z Posted May 27, 2015 Author Share Posted May 27, 2015 Type /debugscript 3Errors ? try with one --Client addEventHandler ( "onClientResourceStart" , getResourceRootElement ( getThisResource ( ) ) , function ( ) exports.customblips:createCustomBlip ( 2290.2392578125, 2430.31640625, 16, 16 , "img/iconlvpd.png" ) end ) I tried the code above but it still does not work Link to comment
Mann56 Posted May 27, 2015 Share Posted May 27, 2015 Dude open the console and type there : debugscript 3 And check if there is any error and report here and why you have named the variables :~ try some decent name like blip as ~ is also a symbol for not Link to comment
nk0zkh0z Posted May 27, 2015 Author Share Posted May 27, 2015 Dude open the console and type there : debugscript 3And check if there is any error and report here and why you have named the variables :~ try some decent name like blip as ~ is also a symbol for not MTA Server: "debugscript: Incorrect client type for this command" Link to comment
SpoC^ Posted May 27, 2015 Share Posted May 27, 2015 You are putting on which side? Client or Server Link to comment
SpoC^ Posted May 28, 2015 Share Posted May 28, 2015 Lack Shader... I think what you seek you find here. https://community.multitheftauto.com/ind ... ls&id=7255 I tested and it worked! Link to comment
nk0zkh0z Posted May 28, 2015 Author Share Posted May 28, 2015 It can operate on a map? (F11) Lack Shader... I think what you seek you find here.https://community.multitheftauto.com/ind ... ls&id=7255 I tested and it worked! Link to comment
nk0zkh0z Posted May 28, 2015 Author Share Posted May 28, 2015 This script does not change the image of the bright spots Link to comment
Walid Posted May 28, 2015 Share Posted May 28, 2015 Try this local BlipsTable = { [1]={2290.2392578125, 2430.31640625, "img/iconlvpd.png" } [2]={2474.3134765625, 1024.2529296875, "img/iconbank.png" } [3]={2322.4189453125, 549.408203125, "img/iconbencang.png" } [4]={1072.3876953125, 2310.4091796875, "img/iconrrr.png" } [5]={21044.53125, 1015.2919921875, "img/iconthuvien.png" } [6]={1675.0947265625, 1447.7275390625, "img/iconsanbay.png" } [7]={2462.111328125, 2243.763671875 ,"img/iconjobphongvien.png" } [8]={1756.859375, 2077.61328125, "img/iconsocuuhoa.png" } [9]={2330.890625, 2165.7734375, "img/iconcasino.png" } } for i=1,#BlipsTable do local x, y , pic = BlipsTable[i][1], BlipsTable[i][2],BlipsTable[i][3] local Blips = exports.customblips:createCustomBlip ( x, y, 16, 16,pic, 100 ) exports.customblips:setCustomBlipRadarScale(Blips, 1) end Link to comment
#RooTs Posted May 28, 2015 Share Posted May 28, 2015 @nk0zkh0z, you it is using this script? https://community.multitheftauto.com/in ... ils&id=960 Link to comment
nk0zkh0z Posted May 29, 2015 Author Share Posted May 29, 2015 I used 'customblips'. Try the above code. But it still does not work.. I feel tired Link to comment
Walid Posted May 29, 2015 Share Posted May 29, 2015 I used 'customblips'. Try the above code.But it still does not work.. I feel tired Try to use my code Link to comment
nk0zkh0z Posted May 29, 2015 Author Share Posted May 29, 2015 I tried but it was not working. Or need a script 'server'? I used 'customblips'. Try the above code.But it still does not work.. I feel tired Try to use my code Link to comment
nk0zkh0z Posted May 29, 2015 Author Share Posted May 29, 2015 I need some help. It is very necessary for my Server. Link to comment
Walid Posted May 29, 2015 Share Posted May 29, 2015 I need some help.It is very necessary for my Server. it's client side i already tried it and it's working fine. Link to comment
#RooTs Posted May 29, 2015 Share Posted May 29, 2015 to my not work also. even on the client side. Link to comment
#RooTs Posted May 31, 2015 Share Posted May 31, 2015 @Walid, forgot to add a comma try this BlipsTable = { [1]={2355.98145, -1660.65625, "image/icon.png" }, [2]={2480.66650, -1666.94678, "image/icon.png" } } addEventHandler ( "onClientResourceStart" , getResourceRootElement(getThisResource ()), function () for i=1,#BlipsTable do local x, y , pic = BlipsTable[i][1], BlipsTable[i][2],BlipsTable[i][3] local Blips = exports.customblips:createCustomBlip ( x, y, 16, 16,pic, 100 ) exports.customblips:setCustomBlipRadarScale(Blips, 1) end end) Link to comment
#RooTs Posted May 31, 2015 Share Posted May 31, 2015 there are bugs and errors in the script "customblip", I tried to report the bug in the forum, but I am disconnected Look Report bug https://forum.multitheftauto.com/viewtop ... 08&t=28741 Link to comment
nk0zkh0z Posted May 31, 2015 Author Share Posted May 31, 2015 You can give me your script? I need some help.It is very necessary for my Server. it's client side i already tried it and it's working fine. Link to comment
mommytellme Posted May 31, 2015 Share Posted May 31, 2015 Write /debugscript 3 in chat, not in server console. Link to comment
nk0zkh0z Posted June 7, 2015 Author Share Posted June 7, 2015 You can send me your full script? please I need some help.It is very necessary for my Server. it's client side i already tried it and it's working fine. 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