Jump to content

Need Server side


Michcio

Recommended Posts

Posted

Hi! I have a client side of police script, but I need a server side of this script. Please help me with this.

Client side:

local screenWidth, screenHeight = guiGetScreenSize()
function vehicleLabel()
for k,v in pairs(getElementsByType("player")) do
if getElementData(getLocalPlayer(),"policja") == true then
if isElementOnScreen(v) then
if isPedInVehicle(v) then
local x,y,z=getElementPosition(v)
local X1,Y1 = getScreenFromWorldPosition(x,y,z)
if X1 and Y1 then
local px,py,pz=getElementPosition(getLocalPlayer())
local dystans=getDistanceBetweenPoints3D(x,y,z,px,py,pz)
local car = getPedOccupiedVehicle( v )
if car then
local speed = math.floor(getDistanceBetweenPoints3D(0,0,0,getElementVelocity(car)) * 100 * 1.61)
if speed then
if v ~= getLocalPlayer() then
if getVehicleController(car) == v then
if dystans < 45 then
dxDrawText("Prędkość: "..speed.." km/h",X1,Y1, screenWidth, screenHeight,tocolor(0,0,255,255),1.5,"default","left","top",false,false,false)
end
end
end
end
end
end
end
end
end
end
end
addEventHandler("onClientRender",getRootElement(),vehicleLabel)

Posted
Type of that script is Client and I want server. Sorry because I'm Polish and my english is poor :)

im asking what kind of server side... btw what its the client? i dont get it.

Posted

He means he played on a server, grabbed the clientside version of a script and would like us to recreate the serverside part in order to recreate (may I dare say steal) the complete feature.

Posted

He means he played on a server, grabbed the clientside version of a script and would like us to recreate the serverside part in order to recreate (may I dare say steal) the complete feature.

thats what i suposed at first look.

Posted
Yes thats true. I found this in Mods catalog. I need that script or something like this. Please help.

Well that means steal, why should us help u if u stealing scripts from other servers...?

Posted
Please help me create other script like this.

Create it yourself and consider yourself as a theft.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...