Bean666 Posted January 2, 2015 Share Posted January 2, 2015 hi guys , is it possible that you can only see playerblip of the player when the player is near? any help appreciated. Link to comment
LaCosTa Posted January 3, 2015 Share Posted January 3, 2015 if you mean to make a distance for the blip try using this function read on wiki for more informations setBlipVisibleDistance ( blip theBlip, float theDistance ) Link to comment
MTA Team botder Posted January 3, 2015 MTA Team Share Posted January 3, 2015 Resource: playerblips File: playerblips.lua Add this piece of code, 100.0 is the distance: local _createBlipAttachedTo = createBlipAttachedTo function createBlipAttachedTo(player, icon, size, r, g, b) return _createBlipAttachedTo(player, icon, size, r, g, b, 0, 100.0) end Link to comment
xeon17 Posted January 3, 2015 Share Posted January 3, 2015 As i know the function setBlipVisibleDistance is a little bugged, blips still appear on F11 map. Link to comment
Bean666 Posted January 3, 2015 Author Share Posted January 3, 2015 (edited) k Edited January 3, 2015 by Guest Link to comment
Bean666 Posted January 3, 2015 Author Share Posted January 3, 2015 doesnt work when i added that piece of code in playerblips blips doesnt appear anymore , even i go close to my friend. Link to comment
MTA Team botder Posted January 3, 2015 MTA Team Share Posted January 3, 2015 local _createBlipAttachedTo = createBlipAttachedTo function createBlipAttachedTo(player, icon, size, r, g, b) return _createBlipAttachedTo(player, icon, size, r, g, b, 255, 0, 100.0) end I forgot the alpha parameter. Link to comment
Bean666 Posted January 3, 2015 Author Share Posted January 3, 2015 necktrox is it possible for normal blips too? such as this , help appreciated . local un = createBlip (-1157.5693359375, -927.427734375, 129.21875, 6) Link to comment
xeon17 Posted January 3, 2015 Share Posted January 3, 2015 (edited) local un = createBlip (-1157.5693359375, -927.427734375, 129.21875, 6,2,_,_,_,0,100.0) Edited January 3, 2015 by Guest Link to comment
Bean666 Posted January 3, 2015 Author Share Posted January 3, 2015 do i need to edit things there? because when i added it didnt work. Link to comment
xeon17 Posted January 3, 2015 Share Posted January 3, 2015 Check /debugscript 3 , and tell me are there bugs in playerblips resource Link to comment
Bean666 Posted January 3, 2015 Author Share Posted January 3, 2015 Bad argument @ 'createBlip' [Expected number at argument 10, got root] Link to comment
Bean666 Posted January 3, 2015 Author Share Posted January 3, 2015 still doesnt work lol Link to comment
xeon17 Posted January 3, 2015 Share Posted January 3, 2015 I guess the script is client side, copy again.. Link to comment
Bean666 Posted January 3, 2015 Author Share Posted January 3, 2015 it worked but i can see it even im far , it created a blip but i can see it even im so far. 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