The community ones are buggy things, but sometimes they're pretty good to learn. I could help you to get done that minimap. Add me on Skype.
killer.68x
You wanna get the % of the armour? If yes then use this:
(Armor * 100) / 255
And the alpha obtained from the percentage:
( (Armor * 100) / 255 ) * 140 / 100
You could search all players by using:
--getElementsByType
local players = getElementsByType("player")
for k,v in pairs(players) do
--script, v is the player
--Example
outputChatBox("Example", v)
end
You need to find a model to replace with your custom 3d model of the backpack. Then insert the models into the resource and add the item to the item system with your own values.
addEventHandler( "onClientKey", root,
function(button,press)
if (button == "h") and (press) then
if not sum then
local sum = 0
end
sum = sum + 1
outputChatBox("You have pressed the key H "..sum.." times")
return sum
end
end )
It's a simple script, just add the timer and done
What you're doing right now it's not gonna appear in most of the screens. I would recommend to you to make a simple calculation to convert your gui's and dxdraw's to "adaptive". An example is:
local screenX, screenY = guiGetScreenSize()
local dxDraw = dxDrawText(screenX*0.421, screenY*0.236) -- The decimals came from my gui's editor element positions on my screen divided by my screen size. For example 540/1280, 540 is the x position on my screen and 1280 is my screenX size.
I think the problem why you cannot warp the player into the vehicle is because the default seat is occupied "seat id 0". So I would make a revision of the occupied seats in the vehicle and then warp the player into a free seat.
getVehicleOccupants
That's gonna return you a table, just make a "for" and look for the nil value in any of the keys to see any free seat in the vehicle.
ye i know but i dont know how to make it so i asked somone has a good heart
Here all of us have a good heart. But that doesn't mean to be stupid people working for free. Just start learning or start paying money for scripts.
Do you guys think it's possible to make a MTA:SA Client for Linux using GTA San Andreas emulated by Wine? I would like to know your opinions. (I would like to get a Client for Linux done )