Michcio Posted July 26, 2010 Posted July 26, 2010 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)
Michcio Posted July 26, 2010 Author Posted July 26, 2010 Type of that script is Client and I want server. Sorry because I'm Polish and my english is poor
Castillo Posted July 26, 2010 Posted July 26, 2010 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.
Kayl Posted July 27, 2010 Posted July 27, 2010 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.
Castillo Posted July 27, 2010 Posted July 27, 2010 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.
Michcio Posted July 27, 2010 Author Posted July 27, 2010 Yes thats true. I found this in Mods catalog. I need that script or something like this. Please help.
Castillo Posted July 27, 2010 Posted July 27, 2010 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...?
Michcio Posted July 27, 2010 Author Posted July 27, 2010 Please help me create other script like this.
50p Posted July 27, 2010 Posted July 27, 2010 Please help me create other script like this. Create it yourself and consider yourself as a theft.
Dark Dragon Posted July 27, 2010 Posted July 27, 2010 Sorry we do not support this way to obtain scripts. Closed
Recommended Posts