Bean666 Posted January 2, 2015 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. Aftermath
LaCosTa Posted January 3, 2015 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 )
MTA Team botder Posted January 3, 2015 MTA Team 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 GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
xeon17 Posted January 3, 2015 Posted January 3, 2015 As i know the function setBlipVisibleDistance is a little bugged, blips still appear on F11 map. A unique GangWar gamemode waiting for you!Click here for more information.
Bean666 Posted January 3, 2015 Author Posted January 3, 2015 (edited) k Edited January 3, 2015 by Guest Aftermath
Bean666 Posted January 3, 2015 Author 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. Aftermath
MTA Team botder Posted January 3, 2015 MTA Team 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. GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
Bean666 Posted January 3, 2015 Author 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) Aftermath
xeon17 Posted January 3, 2015 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 A unique GangWar gamemode waiting for you!Click here for more information.
Bean666 Posted January 3, 2015 Author Posted January 3, 2015 do i need to edit things there? because when i added it didnt work. Aftermath
xeon17 Posted January 3, 2015 Posted January 3, 2015 Check /debugscript 3 , and tell me are there bugs in playerblips resource A unique GangWar gamemode waiting for you!Click here for more information.
Bean666 Posted January 3, 2015 Author Posted January 3, 2015 Bad argument @ 'createBlip' [Expected number at argument 10, got root] Aftermath
xeon17 Posted January 3, 2015 Posted January 3, 2015 Copy my code again A unique GangWar gamemode waiting for you!Click here for more information.
xeon17 Posted January 3, 2015 Posted January 3, 2015 I guess the script is client side, copy again.. A unique GangWar gamemode waiting for you!Click here for more information.
Bean666 Posted January 3, 2015 Author 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. Aftermath
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