ernst
Members-
Posts
36 -
Joined
-
Last visited
-
Days Won
1
Everything posted by ernst
-
It's easier to make an own admin panel rather than editing the default one imo
-
I've been quite bored lately and I've been looking for something to do, so I decided to make a resource. I can't really decide what to do though, so I thought i'd ask you guys what you would like to see.. The resource will obviously be uploaded to the community site once done
-
Flying boats like an flying cars - it's possible?
ernst replied to Linux_Shines's topic in Scripting
no -
don't forget math.random
-
onPlayerJoin is a server sided event, and dxDrawText must use "onClientRender" event.
-
It's never unlimited just that its above 9999
-
can't you read? onClientPlayerStealthKill targetPlayer: The player or ped that is being stealth killed.
-
You can use setControlState
-
playermoney = getPlayerMoney(source) will never work. getPlayerMoney don't have a player argument client sided.
-
function pedcreation ( player, cmd, skin ) local x, y, z = getElementPosition ( player ) local rot = getPedRotation ( player ) peds = createPed ( tonumber ( skin ) or 0, x, y, z - 1 , rot ) setPedAnimation(peds, "ped", "WOMAN_walknorm") end addCommandHandler ( "piepie", pedcreation )
-
How do i choose, if you know what i mean, like, /piepie (skinid) function pedcreation (client, cmd, skinid) if not (skinid) then outputChatBox("Usage: /piepie skinid", client, 250, 0, 0) return end local x, y, z = getElementPosition(client) local rotx, roty, rotz = getElementRotation(client) createPed(skinid, x, y, z, rotz) end addCommandHandler("piepie", pedcreation)
-
addCommandHandler("piepie", function(client) local x, y, z = getElementPosition(client) local rotx, roty, rotz = getElementRotation(client) local ped = createPed(288, x, y, z, rotz) if (ped) then outputChatBox("Successful!",client, 255, 0, 0) end end)
-
Paying €250 for an RPG server is ridiculous Would be easier to just learn lua by yourself.
-
addEventHandler("onPlayerChat", root function(message) outputChatBox("player says"..message) end)
-
Looks amusing, what's the download size of all those skins? EDIT: WOah, I downloaded those 80mb(the whole server) in less than 1 minute.
-
Wouldn't it be easier to just check the vehicle model id?
-
Did you really have to say "did you really have to say that?" ?
-
oh you got me so wrong. im talking about make a table like chatbox. when im writing ex: outPutTable( "zaa", source, 255,255,255,true) outPutTable( "zaa2", source, 255,255,255,true) outPutTable( "zaa3", source, 255,255,255,true) outPutTable will be like this: zaa zaa2 zaa3 and it will be non-visible for a while later. is that possible? set a timer to remove the event. although, I still think a GUI would be better. local memo = guiCreateMemo() local sendEdit = guiCreateEdit() function write() local text = guiGetText(sendEdit) local content = guiGetText(memo) guiSetText(memo, content.."\n"..text end
-
how can i? Easiest would be doing a GUI then adding the text. Nothing I can recommend for a beginner though.
-
for id, player in ipairs(getElementsByType("player")) do local team = getPlayerTeam( player ) if not (team) then return end local r, g, b = getTeamColor(team) Then edit where you draw the dxtext.
-
Would be easier to use --[[ text ]]
-
You would need to create two markers. enter = createMarker(1122.7998046875, -2036.8994140625, 70.5, "arrow", 1, 150, 0, 0, 255 ) leave = createMarker(x, y, z, "arrow", 1, 0, 0, 255) function teleport(client) if not (getElementType(client)=="player") then return end if (source == enter) then setElementPosition(client, 1107.599609375, -2062.9, -51) setElementFrozen(client, false) setTimer(setElementFrozen, 1000, 1, client, false) elseif (source == leave) then --your code end end addEventHandler("onClientMarkerHit", root, teleport)